|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-07 15:31 UTC] sniper@php.net
[2005-11-07 18:16 UTC] iliaa@php.net
[2005-11-08 22:03 UTC] stochnagara at hotmail dot com
[2005-11-09 11:16 UTC] iliaa@php.net
[2005-11-09 12:58 UTC] stochnagara at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 00:00:01 2025 UTC |
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.