Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute.c /tests bug26802.phpt
| From: | Marcus Boerger | Date: | Mon, 05 Jan 2004 23:16:52 +0000 |
| Subject: | Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute.c /tests bug26802.phpt | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-6801@lists.php.net to get a copy of this message | ||
Hello Andrei,
Tuesday, January 6, 2004, 12:07:35 AM, you wrote:
> On Mon, 05 Jan 2004, Marcus Boerger wrote:
>> helly Mon Jan 5 17:45:12 2004 EDT
>>
>> Modified files:
>> /ZendEngine2 zend_execute.c
>> /ZendEngine2/tests bug26802.phpt
>> Log:
>> Fixed bug #26802
> I think a better approach is to follow the $class::$method() format,
> rather than going down the path of interpreting what the variable
> contents might be. I mean, we don't allow $method() calls when method is
> "\$obj->blah", do we?
I see "\$obj->blah" much different becasue it would require evaluating the
string and access the current symbol table to get $obj. Further more we'd
need to patch $this and so on. On the other hand $class::$method() should
access the static property $method of class $class and call the result as a
function.
Best regards,
Marcus mailto:helly@php.net