ID:          44017
 Updated by:  [EMAIL PROTECTED]
-Summary:     wrong error discription with include/require in static
              method
 Reported By: admin at ifyouwantblood dot de
-Status:      Open
+Status:      Bogus
 Bug Type:    Class/Object related
 PHP Version: 5.2.5
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.




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

[2008-02-01 21:52:35] admin at ifyouwantblood dot de

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')


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=44017&edit=1

Reply via email to