Edit report at http://bugs.php.net/bug.php?id=51176&edit=1
ID: 51176
Updated by: felipe@php.net
Reported by: majkl578 at gmail dot com
Summary: Static calling in non-static method behaves like
$this->
-Status: Closed
+Status: Bogus
Type: Bug
Package: Scripting Engine problem
Operating System: Irrelevant
PHP Version: 5.3.2RC3
Assigned To: felipe
Block user comment: N
New Comment:
Hello, I've reverted the wrong changes introduced by trying to fix the
issue reported, but actually there is no bug at all. self::bar(),
static::bar() and foo::bar() are being called in an object context,
hence the __call() is called.
I.e.
$foo->start(); // invoke the __call method
foo::start(); // invoke the __callStatic method
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2010-11-03 02:35:28] felipe@php.net
Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&revision=305043
Log: - Reverted fix for bug #51176
------------------------------------------------------------------------
[2010-03-04 14:27:55] felipe@php.net
Hello!
This isn't my decision, but the release manager.
Thanks.
------------------------------------------------------------------------
[2010-03-04 12:33:59] majkl578 at gmail dot com
Can you explain me, please, why this is not fixed in 5.3.2 stable?
"Thank you for the report, and for helping us make PHP better."
You are intentionally making PHP worse!
------------------------------------------------------------------------
[2010-03-02 13:37:35] majkl578 at gmail dot com
Will you backport this bugfix to PHP 5.3.2 branch?
Otherwise the behavior will be really odd due to presence of this bug.
------------------------------------------------------------------------
[2010-03-02 01:17:06] felipe@php.net
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=51176--
Edit this bug report at http://bugs.php.net/bug.php?id=51176&edit=1