#35118 [NEW]: Using PDOStatement child class crashe Apache
| From: | stochnagara at hotmail dot com | Date: | Sat, 05 Nov 2005 19:34:27 +0000 |
| Subject: | #35118 [NEW]: Using PDOStatement child class crashe Apache | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-87649@lists.php.net to get a copy of this message | ||
From: stochnagara at hotmail dot com
Operating system: windows xp
PHP version: 5CVS-2005-11-05 (snap)
PHP Bug Type: PDO related
Bug description: Using PDOStatement child class crashe Apache
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 bug report at http://bugs.php.net/?id=35118&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35118&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35118&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35118&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35118&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35118&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35118&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35118&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35118&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35118&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35118&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35118&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35118&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35118&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35118&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35118&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35118&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35118&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35118&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35118&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35118&r=mysqlcfg