|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-02-01 22:56 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 16:00:01 2025 UTC |
Description: ------------ include/require (_once) return wrong error messages when used inside a static method. the function name as well as the manual link are prefixed by the classname. Reproduce code: --------------- <?php error_reporting(E_ALL|E_STRICT); class test { public static function inc() { require_once('i_do_not_exists.php'); } } test::inc(); ?> Actual result: -------------- Warning: test::require_once(i_do_not_exists.php) [function.test-require-once]: failed to open stream: No such file or directory Fatal error: test::require_once() [function.require]: Failed opening required 'i_do_not_exists.php' (include_path='.;C:\php5\pear')