ID:               35303
 User updated by:  stochnagara at hotmail dot com
 Reported By:      stochnagara at hotmail dot com
 Status:           Closed
 Bug Type:         PDO related
 Operating System: windows xp
 PHP Version:      5CVS-2005-11-20 (snap)
 New Comment:

Actually I cannot check if the bug is fixed because there has been a
compilation error for 5.1 snap in spans.php.net for about 20 hours.


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

[2005-11-20 21:07:50] [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-20 12:50:02] stochnagara at hotmail dot com

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 this bug report at http://bugs.php.net/?id=35303&edit=1

Reply via email to