ID:          35347
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
-Status:      Open
+Status:      Assigned
 Bug Type:    Class/Object related
 PHP Version: 5.1.0RC6
-Assigned To: 
+Assigned To: dmitry
 New Comment:

Dmitry, please check it out.


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

[2005-11-23 11:23:50] [EMAIL PROTECTED]

Description:
------------
Missing E_STRICT when calling non-static method from class method

Reproduce code:
---------------
<?php
    class foo {
        function bar() {
            print "foo::bar()\n";
        }
    }

    class bar {
        function __construct() {
            foo::bar();
        }
    }

    new bar;
    foo::bar();
?>

Expected result:
----------------
Strict Standards: Non-static method foo::bar() should not be called
statically in ..
foo::bar()

Strict Standards: Non-static method foo::bar() should not be called
statically in ..
foo::bar() 

Actual result:
--------------
foo::bar()

Strict Standards: Non-static method foo::bar() should not be called
statically in ...
foo::bar() 


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


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

Reply via email to