Fixed the uninitialized ptr check. This makes all tests in Twig_TemplateTest pass!

This commit is contained in:
Derick Rethans
2011-07-08 13:01:22 +01:00
parent 9096e3f734
commit b8b89f61a6
+1 -1
View File
@@ -329,7 +329,7 @@ zval *TWIG_PROPERTY(zval *object, zval *propname)
if (Z_OBJ_HT_P(object)->read_property) {
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;
} else {
return NULL;