blob: c573c9c9de57fa7eea07a00ca9c54a0be3c984e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--TEST--
Bug #35176 (include()/require()/*_once() produce wrong error messages about main())
--INI--
html_errors=1
docref_root="/"
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>: Uncaught Error: Failed opening required 'nonexisiting.php' (include_path='%s') in %s:%d
Stack trace:
#0 {main}
thrown in <b>%sbug35176.php</b> on line <b>2</b><br />
|