Browse Source

- Fix logic

PHP-5.1
Marcus Boerger 21 years ago
parent
commit
79b9084eef
  1. 4
      Zend/zend_object_handlers.c

4
Zend/zend_object_handlers.c

@ -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;

Loading…
Cancel
Save