--TEST-- Bug #60523 (PHP Errors are not reported in browsers using built-in SAPI) --SKIPIF-- --INI-- display_errors=1 --FILE-- docRoot; file_put_contents($doc_root . "/syntax_error.php", ""); $output = ''; $host = PHP_CLI_SERVER_HOSTNAME; $fp = php_cli_server_connect(); if(fwrite($fp, <<
--EXPECTF-- HTTP/1.1 200 OK Host: %s Date: %s Connection: close X-Powered-By: PHP/%s Content-type: text/html; charset=UTF-8
Fatal error: Uncaught Error: Call to undefined function non_exists_function() in %ssyntax_error.php:%d Stack trace: #0 %sindex.php(%d): require() #1 {main} thrown in %ssyntax_error.php on line %d