#35347 [Opn->Asn]: missing E_STRICT when calling static methods from class

From: Date: Wed, 23 Nov 2005 12:54:16 +0000
Subject: #35347 [Opn->Asn]: missing E_STRICT when calling static methods from class
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-88781@lists.php.net to get a copy of this message
ID: 35347 Updated by: tony2001@php.net Reported By: bjori@php.net -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] bjori@php.net 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

« previous php.bugs (#88781) next »