diff options
| author | Dmitry Stogov <dmitry@php.net> | 2005-11-15 11:13:43 +0000 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@php.net> | 2005-11-15 11:13:43 +0000 |
| commit | 8c100e6451687e9ecb4101b3d645cdc9b4b6bd53 (patch) | |
| tree | ba572b52932486cd6943069204fbd0bb4aa31dcd /tests | |
| parent | fe306ed1a6e5cf7f4c330c4f2353946f7a361204 (diff) | |
| download | php-git-8c100e6451687e9ecb4101b3d645cdc9b4b6bd53.tar.gz | |
Fixed bug #35176 (include()/require()/*_once() produce wrong error messages about main())
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/lang/bug35176.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/lang/bug35176.phpt b/tests/lang/bug35176.phpt new file mode 100755 index 0000000000..dd56c76a68 --- /dev/null +++ b/tests/lang/bug35176.phpt @@ -0,0 +1,14 @@ +--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 /> |
