mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
- Fix logic
This commit is contained in:
parent
6de75a77c6
commit
79b9084eef
@ -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…
Reference in New Issue
Block a user