ID: 38140 User updated by: maarten at students dot ch Reported By: maarten at students dot ch -Status: Feedback +Status: Open Bug Type: PDO related Operating System: Debian Linux 2.6.16 Xen -PHP Version: 5.1.4 +PHP Version: 5.2.0-dev New Comment:
Same results with 5.2.0-dev (Build date: Jul 19 2006 13:59:22) Previous Comments: ------------------------------------------------------------------------ [2006-07-19 11:37:51] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip ------------------------------------------------------------------------ [2006-07-19 11:36:34] maarten at students dot ch 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 this bug report at http://bugs.php.net/?id=38140&edit=1