--TEST-- GH-8841 (php-cli core dump calling a badly formed function) --SKIPIF-- --FILE-- --EXPECTF-- Fatal error: A void function must not return a value in %s on line %d Before calling g() After calling g() Before calling f() Fatal error: Uncaught Error: Call to undefined function f() in %s:%d Stack trace: #0 [internal function]: {closure:%s:%d}() #1 {main} thrown in %s on line %d