Details
-
Type:
Bug
-
Status:
Postponed
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: Next Major Release
-
Component/s: Zend_Db_Table
-
Labels:None
-
Fix Version Priority:Should Have
Description
Zend_Db_Table_Row_Abstract::__isset() uses array_key_exists rather than isset, which results in null values returning true. Quote from Bill Karwin on the mailing list:
The way it works now makes it a little more like property_exists().
That is, if the Row object has a property, even if its value is null,
then the method returns true. This is useful information, and should be
supported.But I can understand that supporting this with the magic __isset()
method might not be the best solution, since isset() has pretty well
defined semantics, including returning false if the property has a null
value (I have issues with this behavior of isset(), but the fact is that
it does work that way).
Please categorize/fix as needed.