]> granicus.if.org Git - php/commit
Fixed bug #64821 Custom Exceptions crash when internal properties overridden
authorAnatol Belski <ab@php.net>
Sun, 12 May 2013 12:00:32 +0000 (14:00 +0200)
committerAnatol Belski <ab@php.net>
Sun, 12 May 2013 12:00:32 +0000 (14:00 +0200)
commitd6505acbf5ff6db0e9e19cdba121183d9563bad5
tree3fe70313b5944a957456caec925904ad039fc147
parent1cc2162b835ff6bcb8650b9522f54d266576401e
Fixed bug #64821 Custom Exceptions crash when internal properties overridden

If user inherits Exception and overrides the properties to arbitrary data types,
or simply doesn't run parent::__construct(), here we go. Just convert everything
to the appropriate data type, like Exception::__toString() does.
NEWS
Zend/tests/bug64821.1.phpt [new file with mode: 0644]
Zend/tests/bug64821.2.phpt [new file with mode: 0644]
Zend/tests/bug64821.3.phpt [new file with mode: 0644]
Zend/zend_exceptions.c