mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 19:06:40 +00:00
Fixed TWIG_PROPERTY to return a NULL instead of a zval(NULL).
This commit is contained in:
@@ -328,9 +328,14 @@ zval *TWIG_PROPERTY(zval *object, zval *propname)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Z_OBJ_HT_P(object)->read_property) {
|
if (Z_OBJ_HT_P(object)->read_property) {
|
||||||
tmp = Z_OBJ_HT_P(object)->read_property(object, propname, BP_VAR_R TSRMLS_CC);
|
tmp = Z_OBJ_HT_P(object)->read_property(object, propname, BP_VAR_IS TSRMLS_CC);
|
||||||
return tmp;
|
if (&tmp != &EG(uninitialized_zval_ptr)) {
|
||||||
|
return tmp;
|
||||||
|
} else {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
zval *TWIG_PROPERTY_CHAR(zval *object, char *propname)
|
zval *TWIG_PROPERTY_CHAR(zval *object, char *propname)
|
||||||
|
|||||||
Reference in New Issue
Block a user