Re: [PHP-DEV] Process failed? BC and use cases for property_exists() broken in PHP 5.3

2010-10-13 Thread Stan Vass
Hi! 3) The use case for this function required the existing behavior (i.e. can you safely call property $x from the current scope with no warning?), and that *ignored* when the behavior was changed. We already have Reflection classes for inquiring protected/private properties of a class from any

Re: [PHP-DEV] Process failed? BC and use cases for property_exists() broken in PHP 5.3

2010-10-13 Thread Stas Malyshev
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.

Re: [PHP-DEV] Process failed? BC and use cases for property_exists() broken in PHP 5.3

2010-10-13 Thread Ferenc Kovacs
2010/10/13 Stas Malyshev > 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 "a