php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42368 Incorrect error message displayed by pg_escape_string
Submitted: 2007-08-21 23:05 UTC Modified: 2007-08-22 22:40 UTC
From: vesselin at awcreator dot com Assigned: iliaa (profile)
Status: Closed Package: PostgreSQL related
PHP Version: 5CVS-2007-08-21 (snap) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vesselin at awcreator dot com
New email:
PHP Version: OS:

 

 [2007-08-21 23:05 UTC] vesselin at awcreator dot com
Description:
------------
pg_escape_string() displays an incorrect error message

Reproduce code:
---------------
pg_escape_string (array ());


Expected result:
----------------
Warning: pg_escape_string() expects parameter 1 to be string, array given in Command line code on line 1

Actual result:
--------------
Warning: pg_escape_string() expects exactly 2 parameters, 1 given in Command line code on line 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-22 22:40 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 02:01:30 2024 UTC