#35303 [Opn->Csd]: PDO prepare crashes

From: Date: Sun, 20 Nov 2005 20:07:51 +0000
Subject: #35303 [Opn->Csd]: PDO prepare crashes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-88593@lists.php.net to get a copy of this message
 ID:               35303
 Updated by:       iliaa@php.net
 Reported By:      stochnagara at hotmail dot com
-Status:           Open
+Status:           Closed
 Bug Type:         PDO related
 Operating System: windows xp
 PHP Version:      5CVS-2005-11-20 (snap)
 New Comment:

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.




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

[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


Thread (3 messages)

« previous php.bugs (#88593) next »