mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 10:56:38 +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) {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user