ID:               38140
 Updated by:       [EMAIL PROTECTED]
 Reported By:      maarten at students dot ch
-Status:           Open
+Status:           Feedback
 Bug Type:         PDO related
 Operating System: Debian Linux 2.6.16 Xen
 PHP Version:      5.2.0-dev
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2006-07-19 12:04:12] maarten at students dot ch

Same results with 5.2.0-dev (Build date: Jul 19 2006 13:59:22)

------------------------------------------------------------------------

[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

Reply via email to