xref: /PHP-8.1/Zend/tests/gh10810.phpt (revision b5726c2c)
1--TEST--
2GH-10810: Fix NUL byte terminating Exception::__toString()
3--FILE--
4<?php
5echo new \Exception("Hello\0World");
6?>
7--EXPECTF--
8Exception: Hello%0World in %s:%d
9Stack trace:
10#0 {main}
11