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

Bug #5362 Multiline queries and prepare() method
Submitted: 2005-09-12 04:59 UTC
From: jausions Assigned: lsmith
Status: Closed Package: MDB2
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
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:
Solve the problem : 3 + 43 = ?

 [2005-09-12 04:59 UTC] jausions
Description: ------------ Multiline queries with named placeholders are not handled properly. The fix is in MDB2.php, around line 2184 MDB2::prepare() $parameter = preg_replace('/^.{'.($position+1).'}([a-z0-9_]+).*$/i', '\\1', $query); should add the "s" modifier to the regular expression, so "." matches newlines.


 [2005-09-12 11:14 UTC] at php dot net
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the 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.