ID: 44771
Updated by: [EMAIL PROTECTED]
Reported By: igor at webta dot net
-Status: Open
+Status: Assigned
Bug Type: Scripting Engine problem
PHP Version: 5.3CVS-2008-04-18 (snap)
-Assigned To:
+Assigned To: dmitry
Previous Comments:
------------------------------------------------------------------------
[2008-04-18 06:58:30] igor at webta dot net
Description:
------------
Calling nonstatic methods in context of another objects
Reproduce code:
---------------
class A
{
public function bar ()
{
sort($this->arr);
}
}
class B
{
public $arr = array('a', 'c', 'b');
function run ()
{
A::bar();
var_dump($this->arr);
}
}
$b = new B();
$b->run();
Expected result:
----------------
Exception
Actual result:
--------------
Sorted array:
array
0 => string 'a' (length=1)
1 => string 'b' (length=1)
2 => string 'c' (length=1)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44771&edit=1