Bug #64821 [Csd]: Custom Exceptions crash when internal properties overridden
| From: | ab@php.net | Date: | Sun, 12 May 2013 12:13:30 +0000 |
| Subject: | Bug #64821 [Csd]: Custom Exceptions crash when internal properties overridden | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-178903@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64821&edit=1
ID: 64821
Updated by: ab@php.net
Reported by: ab@php.net
Summary: Custom Exceptions crash when internal properties
overridden
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:
related to bug #50005
Previous Comments:
------------------------------------------------------------------------
[2013-05-12 12:11:55] ab@php.net
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
------------------------------------------------------------------------
[2013-05-12 11:39:42] ab@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