mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
15 lines
623 B
PHP
Executable File
15 lines
623 B
PHP
Executable File
--TEST--
|
|
Bug #35176 (include()/require()/*_once() produce wrong error messages about main())
|
|
--INI--
|
|
html_errors=1
|
|
error_reporting=4095
|
|
--FILE--
|
|
<?php
|
|
require_once('nonexisiting.php');
|
|
?>
|
|
--EXPECTF--
|
|
<br />
|
|
<b>Warning</b>: require_once(nonexisiting.php) [<a href='function.require-once.html'>function.require-once.html</a>]: failed to open stream: No such file or directory in <b>%sbug35176.php</b> on line <b>2</b><br />
|
|
<br />
|
|
<b>Fatal error</b>: require_once() [<a href='function.require.html'>function.require.html</a>]: Failed opening required 'nonexisiting.php' (%s) in <b>%sbug35176.php</b> on line <b>2</b><br />
|