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
Status: Closed Package: PostgreSQL related
PHP Version: 5CVS-2007-08-21 (snap) OS: Linux
Private report: No CVE-ID:
 [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-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 17 01:01:56 2014 UTC