#23609 [Ana]: require_once() error complained about main()
| From: | sniper@php.net | Date: | Tue, 13 May 2003 21:20:33 +0000 |
| Subject: | #23609 [Ana]: require_once() error complained about main() | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969353425@lists.php.net to get a copy of this message | ||
ID: 23609
Updated by: sniper@php.net
Reported By: metalgeargleeb at hotmail dot com
Status: Analyzed
-Bug Type: Reproducible crash
+Bug Type: Documentation problem
Operating System: Windows 2000 Server
PHP Version: 4.3.1
New Comment:
reclassify.
Previous Comments:
------------------------------------------------------------------------
[2003-05-13 16:20:20] sniper@php.net
Manual is wrong, it should say 4.3.2.
------------------------------------------------------------------------
[2003-05-13 09:55:53] metalgeargleeb at hotmail dot com
Using PHP 4.3.1, the line:
require_once("config.php");
caused the following error:
<br />
<b>Warning</b>: main(config.php) [<a
href='http://www.php.net/function.main'>function.main</a>]:
failed to
create stream: No such file or directory in
<b>c:\intranet\common.php</b> on line <b>15</b><br />
<br />
<b>Fatal error</b>: main() [<a
href='http://www.php.net/function.main'>function.main</a>]:
Failed
opening required 'config.php' (include_path='.;c:\php4\pear') in
<b>c:\intranet\common.php</b> on line <b>15</b><br />
http://www.php.net/manual/en/function.main.php
specifies that in 4.3.1,
this problem has been fixed
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23609&edit=1