Skip to content

Commit

Permalink
Revert "merged branch pierrejoye/master (PR twigphp#855)"
Browse files Browse the repository at this point in the history
This reverts commit 347bc81, reversing
changes made to 5d7baaf.
  • Loading branch information
tucksaun committed Mar 22, 2013
1 parent 0bf57a8 commit 4383388
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/twig/twig.c
Expand Up @@ -511,6 +511,7 @@ static int twig_add_array_key_to_string(void *pDest APPLY_TSRMLS_DC, int num_arg
{
smart_str *buf;
char *joiner;
APPLY_TSRMLS_FETCH();

buf = va_arg(args, smart_str*);
joiner = va_arg(args, char*);
Expand Down Expand Up @@ -643,6 +644,7 @@ static int twig_add_method_to_class(void *pDest APPLY_TSRMLS_DC, int num_args, v
char *item;
size_t item_len;
zend_function *mptr = (zend_function *) pDest;
APPLY_TSRMLS_FETCH();

if (!(mptr->common.fn_flags & ZEND_ACC_PUBLIC)) {
return 0;
Expand All @@ -665,6 +667,7 @@ static int twig_add_property_to_class(void *pDest APPLY_TSRMLS_DC, int num_args,
zval *retval;
char *class_name, *prop_name;
zend_property_info *pptr = (zend_property_info *) pDest;
APPLY_TSRMLS_FETCH();

if (!(pptr->flags & ZEND_ACC_PUBLIC)) {
return 0;
Expand Down

0 comments on commit 4383388

Please sign in to comment.