#35480 [Opn->Asn]: Persistent connections + unknown column crashes

2005-11-30 Thread sniper
 ID:   35480
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tim at komta dot com
-Status:   Open
+Status:   Assigned
 Bug Type: PDO related
 Operating System: Windows XP
 PHP Version:  5.1.1
-Assigned To:  georg
+Assigned To:  wez


Previous Comments:


[2005-11-30 15:26:19] tim at komta dot com

With the snapshot linked by Sniper, the problem is still there.

Wez, I think I'm misunderstanding what you're asking...The method of
getting a backtrace that I know of (debug_backtrace()) requires PHP to
be running.  The script crashes in such a way that no output ever goes
to the user agent, in spite of no output buffering.

Is there something else I should be doing?

- Tim



[2005-11-30 14:07:51] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip





[2005-11-30 03:35:09] [EMAIL PROTECTED]

tim, can you provide a backtrace?



[2005-11-29 23:09:53] [EMAIL PROTECTED]

Georg, this seems to be the same issue caused by protocol binary
incompatibility.



[2005-11-29 23:04:24] tim at komta dot com

Oops, sorry about that, it's MySQL 5.0.15



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/35480

-- 
Edit this bug report at http://bugs.php.net/?id=35480&edit=1


#35480 [Opn->Asn]: Persistent connections + unknown column crashes

2005-11-29 Thread tony2001
 ID:   35480
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tim at komta dot com
-Status:   Open
+Status:   Assigned
 Bug Type: PDO related
 Operating System: Windows XP
 PHP Version:  5.1.1
-Assigned To:  
+Assigned To:  georg
 New Comment:

Georg, this seems to be the same issue caused by protocol binary
incompatibility.


Previous Comments:


[2005-11-29 23:04:24] tim at komta dot com

Oops, sorry about that, it's MySQL 5.0.15



[2005-11-29 21:55:05] [EMAIL PROTECTED]

And what MySQL version?



[2005-11-29 21:10:03] tim at komta dot com

Description:

Using a persistent connection with PDO (mysql tested) and then
executing a query with an unknown column will crash PHP 5.1.1, and take
Apache with it.

This has been reproduced on two seperate systems here at the office
already.  Both systems use Apache 2.0.54 as a module, with PHP 5.1.1

Reproduce code:
---
 TRUE));
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
$pdo->query('SELECT frank FROM mysql.user LIMIT 20');
?>

Expected result:

Expect a warning, such as Warning: PDO::query() [function.query]:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'frank' in
'field list' in C:\Documents and Settings\Tim\workspace\hxpa
SVN\temp.php on line 5

Actual result:
--
PHP (Apache is reported) crashes.





-- 
Edit this bug report at http://bugs.php.net/?id=35480&edit=1