### Description ```php <?php class C { public function __toString(): string { global $arr; $arr = null; return "C"; } } $arr = [new C, 42]; implode(", ", $arr); ``` Resulted in this output: ``` Segfault ``` But I expected this output instead: ``` ``` Originally reported by @cnwangjihe. ### PHP Version ```plain PHP 8.4+ ``` ### Operating System _No response_
Activity
khaledalam commentedon Apr 19, 2026
Hi @iluuu1994 I can't reproduce this https://3v4l.org/DAvOV#vnull
iluuu1994 commentedon Apr 19, 2026
You might need asan to get a crash.