mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Fixed bug #60569 (Nullbyte truncates Exception $message).
This commit is contained in:
parent
80cb6e56f6
commit
3d9824a798
1
NEWS
1
NEWS
@ -32,6 +32,7 @@ PHP NEWS
|
||||
error). (Stefan)
|
||||
. Fixed bug #60573 (type hinting with "self" keyword causes weird errors).
|
||||
(Laruence)
|
||||
. Fixed bug #60569 (Nullbyte truncates Exception $message). (Ilia)
|
||||
. Fixed bug #52719 (array_walk_recursive crashes if third param of the
|
||||
function is by reference). (Nikita Popov)
|
||||
|
||||
|
BIN
Zend/tests/bug60569.phpt
Normal file
BIN
Zend/tests/bug60569.phpt
Normal file
Binary file not shown.
@ -205,7 +205,7 @@ ZEND_METHOD(exception, __construct)
|
||||
object = getThis();
|
||||
|
||||
if (message) {
|
||||
zend_update_property_string(default_exception_ce, object, "message", sizeof("message")-1, message TSRMLS_CC);
|
||||
zend_update_property_stringl(default_exception_ce, object, "message", sizeof("message")-1, message, message_len TSRMLS_CC);
|
||||
}
|
||||
|
||||
if (code) {
|
||||
|
Loading…
Reference in New Issue
Block a user