Edit report at https://bugs.php.net/bug.php?id=64821&edit=1
ID: 64821 Updated by: a...@php.net Reported by: a...@php.net Summary: Custom Exceptions crash when internal properties overridden -Status: Assigned +Status: Closed Type: Bug Package: Scripting Engine problem Operating System: Windows x64 PHP Version: Irrelevant Assigned To: ab Block user comment: N Private report: N New Comment: Automatic comment on behalf of ab Revision: http://git.php.net/?p=php-src.git;a=commit;h=d6505acbf5ff6db0e9e19cdba121183d9563bad5 Log: Fixed bug #64821 Custom Exceptions crash when internal properties overridden Previous Comments: ------------------------------------------------------------------------ [2013-05-12 11:39:42] a...@php.net 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 this bug report at https://bugs.php.net/bug.php?id=64821&edit=1