dis-bench / src /php /php-src /Zend /tests /exceptions /bug60569.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
300 Bytes
--TEST--
Bug #60569 (Nullbyte truncates Exception $message.)
--FILE--
<?php
try {
$msg = "Some error \x00 message";
throw new Exception($msg);
} catch(Exception $e) {
var_dump($e->getMessage(), $msg);
}
?>
--EXPECTF--
string(20) "Some error %0 message"
string(20) "Some error %0 message"