Bug #52713 [Opn->Csd]: Can't call undefined methods (using __call) on parent
Edit report at http://bugs.php.net/bug.php?id=52713&edit=1
ID: 52713
Updated by: felipe@php.net
Reported by: michael at wakeless dot net
Summary: Can't call undefined methods (using __call) on
parent
-Status: Open
+Status: Closed
Type: Bug
Package: Scripting Engine problem
Operating System: All
PHP Version: 5.3.3
-Assigned To:
+Assigned To: felipe
Block user comment: N
Private report: N
New Comment:
Yes, it has been already fixed in 5.3.4.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2011-01-11 17:52:14] ghosh at q-one dot com
Is this still problem with PHP 5.3.4?
Following the discussion here:
http://www.serverphorums.com/read.php?7,220473,220473#msg-220473
it seems this should already been fixed. This bug, however, is still
marked as open.
------------------------------------------------------------------------
[2010-08-31 14:48:25] giovanni at giacobbi dot net
@michael: I think the situation is perfectly clear. I think they screwed
up on this one.
@felipe: this change is absolutely not reasonable and breaks backward
compatibility. I understand that the behaviour for #51176 is
inconvenient, but that's the way it is, you cannot change this in a
minor release.
My suggestion (and wish) is that you revert this change to the previous
behaviour. Shall we discuss this in the internals mailing list? Sounds
like an interesting issue without a straightforward solution.giov
------------------------------------------------------------------------
[2010-08-31 06:06:45] michael at wakeless dot net
I'm pretty sure everyone should be aware of this but I'll say it
nonetheless.
parent:: isn't necessarily a static call. When it's used within an
object context it should remain within an object context, but the
subsequent call to __callStatic seems to lose it.
I tried a workaround of testing for $this in __callStatic but it seems
to have gone missing.
Is there anything I can do to help this out? Write a more comprehensive
test case that can be checked into the suite?
------------------------------------------------------------------------
[2010-08-31 01:06:05] felipe@php.net
The change was introduced as a fix for the bug #51176.
------------------------------------------------------------------------
[2010-08-31 01:05:07] felipe@php.net
The difference introduced was that the __call() just will be called when
__callStatic() is not implemented, on such static method calls.
------------------------------------------------------------------------
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=52713
--
Edit this bug report at http://bugs.php.net/bug.php?id=52713&edit=1
Thread (8 messages)