#23609 [Opn->Ana]: require_once() error complained about main()

From: Date: Tue, 13 May 2003 21:20:20 +0000
Subject: #23609 [Opn->Ana]: require_once() error complained about main()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39559@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:           Open
+Status:           Analyzed
-Bug Type:         Unknown/Other Function
+Bug Type:         Reproducible crash
 Operating System: Windows 2000 Server
 PHP Version:      4.3.1
 New Comment:

Manual is wrong, it should say 4.3.2.



Previous Comments:
------------------------------------------------------------------------

[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



Thread (2 messages)

« previous php.bugs (#39559) next »