summaryrefslogtreecommitdiff
path: root/tests/lang/bug35176.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-05-29 17:27:51 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-06-05 09:46:39 +0200
commite949f306be9e7d54a700cccd5b9af9711615b43f (patch)
tree7b2d1e8b616edfd87e18538769f862ade8a58cdf /tests/lang/bug35176.phpt
parent4ce47709c748f912849fac2b0c157a3274e27197 (diff)
downloadphp-git-e949f306be9e7d54a700cccd5b9af9711615b43f.tar.gz
Fixed bug #72089: Throw Error on require failure
It should be noted that we still throw the usual fopen warnings, but the final fatal error becomes an Error exception. Combine with @ to suppress FS warnings. Closes GH-5641.
Diffstat (limited to 'tests/lang/bug35176.phpt')
-rw-r--r--tests/lang/bug35176.phpt5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lang/bug35176.phpt b/tests/lang/bug35176.phpt
index cbba52055d..c573c9c9de 100644
--- a/tests/lang/bug35176.phpt
+++ b/tests/lang/bug35176.phpt
@@ -12,4 +12,7 @@ require_once('nonexisiting.php');
<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>: 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 />