- Fix logic

This commit is contained in:
Marcus Boerger 2005-04-17 20:15:23 +00:00
parent 6de75a77c6
commit 79b9084eef

View File

@ -819,7 +819,9 @@ static int zend_std_has_property(zval *object, zval *member, int check_empty TSR
if (check_empty) {
result = zend_is_true(*value);
} else {
result = (Z_TYPE_PP(value) != IS_NULL);
/* We do not need to check for NULL here because this is not called for isset/isempty.
* And indeed even a NULL value means the property is defined. */
result = 1;
}
} else {
result = 0;