#35135 [Opn->Asn]: Constructing PDOStatment succeeds but accessing its members crashes apache

From: Date: Mon, 07 Nov 2005 15:08:33 +0000
Subject: #35135 [Opn->Asn]: Constructing PDOStatment succeeds but accessing its members crashes apache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-87774@lists.php.net to get a copy of this message
ID: 35135 Updated by: sniper@php.net Reported By: phpbug20051107 at spam dot dusty dot org -Status: Open +Status: Assigned Bug Type: PDO related Operating System: windows xp -PHP Version: 5.1.0RC4 +PHP Version: 5CVS-2005-11-07 (snap) Assigned To: wez New Comment: Assigned to the maintainer of PDO. Previous Comments: ------------------------------------------------------------------------ [2005-11-07 16:04:47] 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 15:28:55] 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 08:00:15] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35135&edit=1

« previous php.bugs (#87774) next »