xref: /PHP-8.0/Zend/tests/bug60569.phpt (revision f8d79582)
1--TEST--
2Bug #60569 (Nullbyte truncates Exception $message.)
3--FILE--
4<?php
5try {
6    $msg = "Some error \x00 message";
7    throw new Exception($msg);
8} catch(Exception $e) {
9    var_dump($e->getMessage(), $msg);
10}
11?>
12--EXPECT--
13string(20) "Some error � message"
14string(20) "Some error � message"
15