|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35303 PDO prepare crashes
Submitted: 2005-11-20 12:50 UTC Modified: 2005-11-21 12:39 UTC
From: stochnagara at hotmail dot com Assigned:
Status: Closed Package: PDO related
PHP Version: 5CVS-2005-11-20 (snap) OS: windows xp
Private report: No CVE-ID:
 [2005-11-20 12:50 UTC] stochnagara at hotmail dot com
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-20 21:07 UTC]
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
Thank you for the report, and for helping us make PHP better.

 [2005-11-21 12:39 UTC] stochnagara at hotmail dot com
Actually I cannot check if the bug is fixed because there has been a compilation error for 5.1 snap in for about 20 hours.
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Fri Nov 27 20:01:35 2015 UTC