mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-17 21:07:18 +00:00
Fixed the uninitialized ptr check. This makes all tests in Twig_TemplateTest pass!
This commit is contained in:
@@ -329,7 +329,7 @@ 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_IS TSRMLS_CC);
|
tmp = Z_OBJ_HT_P(object)->read_property(object, propname, BP_VAR_IS TSRMLS_CC);
|
||||||
if (&tmp != &EG(uninitialized_zval_ptr)) {
|
if (tmp != EG(uninitialized_zval_ptr)) {
|
||||||
return tmp;
|
return tmp;
|
||||||
} else {
|
} else {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user