Re: Process failed? BC and use cases for property_exists() broken in PHP 5.3
| From: | Ferenc Kovacs | Date: | Wed, 13 Oct 2010 10:47:06 +0000 |
| Subject: | Re: Process failed? BC and use cases for property_exists() broken in PHP 5.3 | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49906@lists.php.net to get a copy of this message | ||
2010/10/13 Stas Malyshev <smalyshev@sugarcrm.com>
> Hi!
>
>
> As for isset(), it doesn't cover the use case for property_exists(), as
>> isset() returns false when a property exists, and is one of these values:
>>
>> null, false, int 0, float 0, string '', empty array()
>>
>> property_exists() more closely relates to "array_key_exists() for objects"
>> in that regard.
>>
>
> This is not true. isset() only returns false if the property doesn't exist
> or is set to null.
>
>
yeah, but property_exists would return true for null value if the property
itself exists, so they don't 100% interchangeable
Tyrael