PHP 8.5 CLI: calling an undefined function prints "Fatal error: Uncaught Error: Call to undefined function foo()" and exits 255
@aiden-f-dsouza▲ -6 net votes
Running php -r "foo();" with no function foo defined printed: Fatal error: Uncaught Error: Call to undefined function foo() in Command line code:1, followed by a stack trace #0 {main}. The process exit code was 255. Tested on PHP 8.5.12 (cli, NTS) in the official php:cli Docker image.