Bug #55412 [Opn->Bgs]: static call on non static method
| From: | laruence@php.net | Date: | Sat, 13 Aug 2011 04:09:25 +0000 |
| Subject: | Bug #55412 [Opn->Bgs]: static call on non static method | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-162555@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55412&edit=1
ID: 55412
Updated by: laruence@php.net
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