mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
This PR corrects misspellings identified by the check-spelling action. The misspellings have been reported at jsoref@b6ba3e2#commitcomment-48946465 The action reports that the changes in this PR would make it happy: jsoref@602417c Closes GH-6822.
19 lines
633 B
PHP
19 lines
633 B
PHP
--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('nonexistent.php');
|
|
?>
|
|
--EXPECTF--
|
|
<br />
|
|
<b>Warning</b>: require_once(nonexistent.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 'nonexistent.php' (include_path='%s') in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in <b>%sbug35176.php</b> on line <b>2</b><br />
|