|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35135 Constructing PDOStatment succeeds but accessing its members crashes apache
Submitted: 2005-11-07 08:00 UTC Modified: 2005-11-07 18:09 UTC
From: phpbug20051107 at spam dot dusty dot org Assigned: wez (profile)
Status: Closed Package: PDO related
PHP Version: 5CVS-2005-11-07 (snap) OS: windows xp
Private report: No CVE-ID: None
 [2005-11-07 08:00 UTC] phpbug20051107 at spam dot dusty dot org
If a PDOStatement is directly constructed (new PDOStatment()) and then any member of that instance accessed, Apache2 will crash.

Reproduce code:

$s = new PDOStatement();
$s->errorInfo();  // <-- apache crashes


Expected result:
An error, warning, or notice generated when PDOStatment is constructed directly.

Actual result:
Apache crashes:

Faulting application Apache.exe, version, faulting module php_pdo.dll, version, fault address 0x00005508.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-07 15:28 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-11-07 16:04 UTC] phpbug20051107 at spam dot dusty dot org
Thanks; I meant to mention that I'd tried the most recent snap before submitting. I just tried again from the latest snap and received the same results.
 [2005-11-07 16:08 UTC]
Assigned to the maintainer of PDO.
 [2005-11-07 18:09 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.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Jul 05 05:05:45 2022 UTC