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

From: Date: Tue, 13 May 2003 22:03:28 +0000
Subject: #23609 [Ana->Csd]: require_once() error complained about main()
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969353430@lists.php.net to get a copy of this message
ID: 23609 Updated by: philip@php.net Reported By: metalgeargleeb at hotmail dot com -Status: Analyzed +Status: Closed Bug Type: Documentation problem Operating System: Windows 2000 Server PHP Version: 4.3.1 New Comment: I wrote the dummy main() page before 4.3.1 became the CGI fix distro, these fixes should actually be listed as 4.3.2. This is now fixed in CVS with the wording slightly modified to avoid confusion, thanks for the report. http://cvs.php.net/cvs.php/phpdoc/en/reference/info/functions/main.xml Previous Comments: ------------------------------------------------------------------------ [2003-05-13 17:01:32] alindeman@php.net Uhhh...it seems that it's my bad interpretation of the docs. Disregard the last comment... ------------------------------------------------------------------------ [2003-05-13 16:53:14] alindeman@php.net Are you sure the documentation is wrong? The docs say that in 4.3.1 (which is what he is using), errors with require_once point to main(). The original ''bug'' seems more like a misinterpretation of the docs... ------------------------------------------------------------------------ [2003-05-13 16:20:32] sniper@php.net reclassify. ------------------------------------------------------------------------ [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

« previous php.doc (#969353430) next »