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

From: Date: Wed, 13 Oct 2010 07:52:54 +0000
Subject: Re: Process failed? BC and use cases for property_exists() broken in PHP 5.3
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-49905@lists.php.net to get a copy of this message
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. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#49905) next »