1--TEST-- 2GH-16477: Segmentation fault when calling __debugInfo() after failed SplFileObject::__constructor 3--FILE-- 4<?php 5 6$obj = new SplFileObject(__FILE__); 7 8try { 9 $obj->__construct(); 10} catch (Throwable $e) { 11 echo $e::class, ': ', $e->getMessage(), PHP_EOL; 12} 13$obj->__debugInfo(); 14 15?> 16DONE 17--EXPECT-- 18ArgumentCountError: SplFileObject::__construct() expects at least 1 argument, 0 given 19DONE 20