ID: 35176 Updated by: [EMAIL PROTECTED] Reported By: subscription at nazarenko dot net Status: Open -Bug Type: Documentation problem +Bug Type: PHP options/info functions Operating System: SuSE Linux 10.0 PHP Version: 5CVS-2005-11-09 (CVS) New Comment:
I removed the "No longer points here" column from function.main in CVS. This is maybe not easy to fix but it's still a bug: 1. Prior to function.require error message, there's a bogus function.main error message - it should be silented. 2. require_once() points to function.require and not function.require-once, include_once() parallel. Previous Comments: ------------------------------------------------------------------------ [2005-11-10 09:23:11] [EMAIL PROTECTED] See also bug #21499. ------------------------------------------------------------------------ [2005-11-09 22:32:11] [EMAIL PROTECTED] The docs are wrong - I can see the same problem in 4.3.6 and 4.3.10. Also, I don't see an easy way to fix it, since include_*()/require_*() aren't really functions, but language constructs. ------------------------------------------------------------------------ [2005-11-09 22:14:54] subscription at nazarenko dot net Sorry, the script above should have require_once('fake'); ------------------------------------------------------------------------ [2005-11-09 22:06:47] subscription at nazarenko dot net A sample script: <?php require_once('nonexisting'); ?> Produces this HTML (html_errors=on): <b>Warning</b>: main(fake) [<a href='http://www.php.net/manual/en/function.main.php'>function.main.php</a>]: failed to open stream: No such file or directory in <b>x.php</b> on line <b>2</b><br /> </span> <b>Fatal error</b>: main() [<a href='http://www.php.net/manual/en/function.require.php'>function.require.php</a>]: Failed opening required 'fake' (include_path='.:/usr/lib/php') in <b>x.php</b> on line <b>2</b><br /> This illustrates both points: the erroneous main() function as well as the wrong html link (should be funtion.require-once.php) ------------------------------------------------------------------------ [2005-11-09 21:56:51] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/35176 -- Edit this bug report at http://bugs.php.net/?id=35176&edit=1