--TEST-- Bug #31158 (array_splice on $GLOBALS crashes) --INI-- error_reporting = E_ALL --FILE-- --EXPECTF-- Fatal error: Uncaught Error: array_splice(): Argument #1 ($array) could not be passed by reference in %s:%d Stack trace: #0 %s(%d): __() #1 {main} thrown in %s on line %d