#35303 [NEW]: PDO prepare crashes
| From: | stochnagara at hotmail dot com | Date: | Sun, 20 Nov 2005 11:50:03 +0000 |
| Subject: | #35303 [NEW]: PDO prepare crashes | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-88574@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-20 (snap)
PHP Bug Type: PDO related
Bug description: PDO prepare crashes
Description:
------------
PDO still crashes Apache when using child classes.
See bug #35118 - it's almost the same.
Reproduce code:
---------------
<?
class MAppPDOStatement extends PDOStatement {
}
class MAppPDO extends PDO {
function prepare ($string, array $options = array()) {
$options [PDO::ATTR_STATEMENT_CLASS] = 'MAppPDOStatement';
parent::prepare ($string, $options);
}
}
$a = new MAppPDO("sqlite::memory:");
$a->prepare("insert into test (b) values (?)");
Expected result:
----------------
no errors
Actual result:
--------------
Apache crashes.
--
Edit bug report at http://bugs.php.net/?id=35303&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35303&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35303&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35303&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35303&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35303&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35303&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35303&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35303&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35303&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35303&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35303&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35303&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35303&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35303&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35303&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35303&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35303&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35303&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35303&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35303&r=mysqlcfg