Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.12.2

Bug #11125 wrong pg_escape_string() call
Submitted: 2007-05-24 15:22 UTC
From: arthurhoek2 Assigned: aharvey
Status: Closed Package: DB (version 1.7.11)
PHP Version: 5.2.1 OS: Debian
Roadmaps: 1.7.12    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 37 - 4 = ?

 
 [2007-05-24 15:22 UTC] arthurhoek2 (Arthur Hoek)
Description: ------------ The Postgres handler for escapeSimple does not work for php 5.2 or above, because pg_escape_string now also expects a db connection id Actual result: -------------- Warning: pg_escape_string() expects exactly 2 parameters, 1 given in /usr/share/php/DB/pgsql.php on line 515

Comments

 [2007-06-24 09:57 UTC] mvedana (Martino Vedana)
Anybody have a temporary patch?
 [2007-06-29 12:06 UTC] aharvey (Adam Harvey)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Ah, undocumented BC breaks. Everyone's favourite PHP feature. In short, pg_escape_string in PHP < 5.2.0 is no longer compatible with PHP >= 5.2.0.