From: ab Operating system: Windows x64 PHP version: Irrelevant Package: Scripting Engine problem Bug Type: Bug Bug description:Custom Exceptions crash when internal properties overridden
Description: ------------ This bug is related to bug #50005, so the snippet from Zend/tests/bug50005.phpt . The BT below > msvcr110d.dll!_strdup_dbg(const char * string, int nBlockUse, const char * szFileName, int nLine) Line 73 C php5_debug.dll!php_error_cb(int type, const char * error_filename, const unsigned int error_lineno, const char * format, char * args) Line 983 C php5_debug.dll!zend_error_va(int type, const char * file, unsigned int lineno, const char * format, ...) Line 792 C php5_debug.dll!zend_exception_error(_zval_struct * exception, int severity) Line 832 C php5_debug.dll!zend_execute_scripts(int type, _zval_struct * * retval, int file_count, ...) Line 1343 C php5_debug.dll!php_execute_script(_zend_file_handle * primary_file) Line 2479 C php.exe!do_cli(int argc, char * * argv) Line 994 C Test script: --------------- <?php class a extends exception { public function __construct() { $this->file = null; } } throw new a; Expected result: ---------------- no crash Actual result: -------------- crash -- Edit bug report at https://bugs.php.net/bug.php?id=64821&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64821&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64821&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64821&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64821&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64821&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64821&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64821&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64821&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64821&r=support Expected behavior: https://bugs.php.net/fix.php?id=64821&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64821&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64821&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64821&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64821&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64821&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64821&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64821&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64821&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64821&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64821&r=mysqlcfg