Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_builtin_functions.c
| From: | Marcus Boerger | Date: | Sun, 17 Apr 2005 20:13:12 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_builtin_functions.c | ||
| References: | 1 2 3 4 5 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-3568@lists.php.net to get a copy of this message | ||
Hello Nuno,
thanks for testing and finding these cases. Your results revealed problems
in the function as well as in the logic of the engine.
best regards
marcus
Sunday, April 17, 2005, 9:29:05 PM, you wrote:
> Hello Marcus,
> I've found a couple of test cases that fail :)
> class myClass {public $mine;}
> this segfaults:
> var_dump(property_exists(new myClass, 222));
> var_dump(property_exists('aa', 222));
> these don't output the same value if the property isn't initializated:
> var_dump(property_exists('myClass', 'mine'));
> var_dump(property_exists(new myClass, 'mine'));
> Nuno
> P.S.: I'll wait before I commit the docs untill you decide the name of the
> function.
> ----- Original Message -----
>> Hello Nuno,
>>
>> try again, i hopefully have fixed all isues now. But you houldn't
>> document
>> the code since the function will be renamed anyway.
>>
>> best regards
>> marcus
>>
>> Friday, April 15, 2005, 6:35:55 PM, you wrote:
>>
>>> BTW, there is another bug:
>>
>>> <?
>>
>>> class myClass {
>>> public $mine;
>>> }
>>
>>> var_dump(property_exists('myClass', 'mine'));
>>> var_dump(property_exists(new myClass, 'mine'));
>>
>> ?>>
>>
>>> outputs:
>>> bool(true)
>>> bool(false)
>>
>>
>>> If the property is initializated, both output true.
>>
>>> Nuno