15 lines
300 B
Plaintext
15 lines
300 B
Plaintext
|
|
--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"
|