ID:               35118
 Updated by:       [EMAIL PROTECTED]
 Reported By:      stochnagara at hotmail dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         PDO related
 Operating System: windows xp
 PHP Version:      5CVS-2005-11-05 (snap)
-Assigned To:      
+Assigned To:      wez
 New Comment:

Assigned to the maintainer.


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

[2005-11-05 20:34:27] stochnagara at hotmail dot com

Description:
------------
When I try to use a class which extends PDOStatement, my apache
crashes. Here is a simple reproduce script:

Reproduce code:
---------------
class MAppPDOStatement extends PDOStatement {
        function __construct ($pdo) {
                parent::__construct ($pdo);
                $this->setFetchMode (PDO::FETCH_OBJ);
        }
}

$a = new PDO("sqlite::memory:");
$a->exec ("create table test (id int not null unique, name string)");
$a->prepare ("select * from sqlite_master", array
(PDO::ATTR_STATEMENT_CLASS => 'MAppPDOStatement'));


Expected result:
----------------
no errors

Actual result:
--------------
Apache crashes.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35118&edit=1

Reply via email to