Merge branch 'master' of github.com:derickr/twig-ext
authorDerick Rethans <github@derickrethans.nl>
Mon, 21 Nov 2011 11:09:34 +0000 (11:09 +0000)
committerDerick Rethans <github@derickrethans.nl>
Mon, 21 Nov 2011 11:09:34 +0000 (11:09 +0000)
Conflicts:
ext/twig/twig.c

1  2 
ext/twig/twig.c

diff --cc ext/twig/twig.c
@@@ -276,12 -276,8 +276,12 @@@ zval *TWIG_GET_STATIC_PROPERTY(zval *cl
                return NULL;
        }
  
-       ce = zend_get_class_entry(class);
+       ce = zend_get_class_entry(class TSRMLS_CC);
 +#if PHP_VERSION_ID >= 50400
 +      tmp_zval = zend_std_get_static_property(ce, prop_name, strlen(prop_name), 0, NULL TSRMLS_CC);
 +#else
        tmp_zval = zend_std_get_static_property(ce, prop_name, strlen(prop_name), 0 TSRMLS_CC);
 +#endif
        return *tmp_zval;
  }
  
@@@ -366,14 -358,10 +366,14 @@@ zval *TWIG_PROPERTY(zval *object, zval 
        return tmp;
  }
  
- int TWIG_HAS_PROPERTY(zval *object, zval *propname)
+ int TWIG_HAS_PROPERTY(zval *object, zval *propname TSRMLS_DC)
  {
        if (Z_OBJ_HT_P(object)->has_property) {
 +#if PHP_VERSION_ID >= 50400
 +              return Z_OBJ_HT_P(object)->has_property(object, propname, 0, NULL TSRMLS_CC);
 +#else
                return Z_OBJ_HT_P(object)->has_property(object, propname, 0 TSRMLS_CC);
 +#endif
        }
        return 0;
  }