Edit report at https://bugs.php.net/bug.php?id=55412&edit=1
ID: 55412 Updated by: [email protected] Reported by: dev at catalint dot ro Summary: static call on non static method -Status: Open +Status: Bogus Type: Bug Package: Class/Object related Operating System: CentOs PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: Closing as bogus, this thing is not a static call, see #55311 Previous Comments: ------------------------------------------------------------------------ [2011-08-12 11:13:43] dev at catalint dot ro Description: ------------ $this->me in class "a" should not have 'cata' as a value. Test script: --------------- <?php error_reporting(E_ALL); ini_set('display_erros','on'); class a{ public function bar(){ echo $this->me; } } class b{ function foo(){ a::bar(); } } $b=new b(); $b->me='cata'; $b->foo(); Expected result: ---------------- no echo or error thrown Actual result: -------------- cata ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55412&edit=1
