php.net |  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
Description:
------------
If a PDOStatement is directly constructed (new PDOStatment()) and then any member of that instance accessed, Apache2 will crash.

Reproduce code:
---------------
<?php

$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 2.0.54.0, faulting module php_pdo.dll, version 5.1.0.0, fault address 0x00005508.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-07 15:28 UTC] sniper@php.net
Please try using this CVS snapshot:

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


 [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] sniper@php.net
Assigned to the maintainer of PDO.
 [2005-11-07 18:09 UTC] 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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC