From e949f306be9e7d54a700cccd5b9af9711615b43f Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 29 May 2020 17:27:51 +0200 Subject: 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. --- tests/lang/bug35176.phpt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/lang') 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');
Warning: require_once(nonexisiting.php) [function.require-once.html]: Failed to open stream: No such file or directory in %sbug35176.php on line 2

-Fatal error: require_once() [function.require.html]: Failed opening required 'nonexisiting.php' (%s) in %sbug35176.php on line 2
+Fatal error: Uncaught Error: Failed opening required 'nonexisiting.php' (include_path='%s') in %s:%d +Stack trace: +#0 {main} + thrown in %sbug35176.php on line 2
-- cgit v1.2.1