From: maarten at students dot ch Operating system: Debian Linux 2.6.16 Xen PHP version: 5.1.4 PHP Bug Type: PDO related Bug description: PDO::prepare() crashes without any error output
Description: ------------ When preparing a statement (see below) I get a whitescreen - the PHP process seems to die without any error output, despite having error_reporting = E_ALL and display_errors = On in my php.ini. I'm using PDO Driver for MySQL, client library version 4.1.15 Reproduce code: --------------- $pdo = new PDO([...]); $statement = $pdo->prepare('SELECT r1.a AS a, r1.b AS b, 0 AS v1 FROM `links` AS r1 WHERE r1.a = :a AND r1.b = :b LIMIT 0,1 UNION SELECT r1.a AS a, r2.b AS b, r2.a AS v1 FROM `links` AS r1 JOIN `links` AS r2 ON r1.b = r2.a WHERE r1.a = :a AND r2.b = :b AND r1.a != r2.a AND r2.b != r2.a LIMIT 0,1'); die('foo'); /* other queries with bound params work perfectly here= */ Expected result: ---------------- foo Actual result: -------------- Execution stops after calling PDO::prepare() -- Edit bug report at http://bugs.php.net/?id=38140&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38140&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38140&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38140&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38140&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38140&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38140&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38140&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38140&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38140&r=support Expected behavior: http://bugs.php.net/fix.php?id=38140&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38140&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38140&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38140&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38140&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38140&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38140&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38140&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38140&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38140&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38140&r=mysqlcfg