docref_root is now required for html_errors to do anything

This commit is contained in:
Hannes Magnusson 2011-08-16 14:52:54 +00:00
parent 8db63e8874
commit bddb3d6c5d

View File

@ -2,6 +2,7 @@
Bug #35176 (include()/require()/*_once() produce wrong error messages about main())
--INI--
html_errors=1
docref_root="/"
error_reporting=4095
--FILE--
<?php
@ -9,6 +10,6 @@ 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 />
<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 />
<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 />