#35303 [Csd]: PDO prepare crashes

From: Date: Mon, 21 Nov 2005 11:39:35 +0000
Subject: #35303 [Csd]: PDO prepare crashes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-88611@lists.php.net to get a copy of this message
ID: 35303 User updated by: stochnagara at hotmail dot com Reported By: stochnagara at hotmail dot com Status: Closed Bug Type: PDO related Operating System: windows xp PHP Version: 5CVS-2005-11-20 (snap) New Comment: Actually I cannot check if the bug is fixed because there has been a compilation error for 5.1 snap in spans.php.net for about 20 hours. Previous Comments: ------------------------------------------------------------------------ [2005-11-20 21:07:50] iliaa@php.net This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2005-11-20 12:50:02] stochnagara at hotmail dot com Description: ------------ PDO still crashes Apache when using child classes. See bug #35118 - it's almost the same. Reproduce code: --------------- <? class MAppPDOStatement extends PDOStatement { } class MAppPDO extends PDO { function prepare ($string, array $options = array()) { $options [PDO::ATTR_STATEMENT_CLASS] = 'MAppPDOStatement'; parent::prepare ($string, $options); } } $a = new MAppPDO("sqlite::memory:"); $a->prepare("insert into test (b) values (?)"); Expected result: ---------------- no errors Actual result: -------------- Apache crashes. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35303&edit=1

« previous php.bugs (#88611) next »