ID:               35118
 User updated by:  stochnagara at hotmail dot com
 Reported By:      stochnagara at hotmail dot com
-Status:           Feedback
+Status:           Closed
 Bug Type:         PDO related
 Operating System: windows xp
 PHP Version:      5CVS-2005-11-05 (snap)
 Assigned To:      wez
 New Comment:

Yes, I've used 5.1 snap. Now I've just downloaded latest snap and the
sample above works perfectly well:)

So it's closed.


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

[2005-11-09 11:16:32] [EMAIL PROTECTED]

Are you using PHP 5.1 or 5.0 snap? You need to use the 5.1 snapshot.

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

[2005-11-08 22:03:43] stochnagara at hotmail dot com

Still present in latest snap.
Maybe forgot to commit?

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

[2005-11-07 18:16:33] [EMAIL PROTECTED]

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.



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

[2005-11-07 15:31:55] [EMAIL PROTECTED]

Assigned to the maintainer.

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

[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