#23609 [NEW]: require_once() error complained about main()

From: Date: Tue, 13 May 2003 14:55:53 +0000
Subject: #23609 [NEW]: require_once() error complained about main()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39529@lists.php.net to get a copy of this message
From: metalgeargleeb at hotmail dot com Operating system: Windows 2000 Server PHP version: 4.3.1 PHP Bug Type: Unknown/Other Function Bug description: require_once() error complained about main() 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 bug report at http://bugs.php.net/?id=23609&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23609&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23609&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23609&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23609&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23609&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23609&r=support Expected behavior: http://bugs.php.net/fix.php?id=23609&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23609&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23609&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23609&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23609&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23609&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23609&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23609&r=gnused

« previous php.bugs (#39529) next »