From 508bb66bf7d512a7325a6a1353890aefea8641ec Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Thu, 7 Jul 2011 13:06:13 +0100 Subject: [PATCH] Made properties return properly. --- twig.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/twig.c b/twig.c index 02a95c7..ee98590 100644 --- a/twig.c +++ b/twig.c @@ -656,7 +656,8 @@ PHP_FUNCTION(twig_template_get_attributes) } convert_to_string(item); - return_value = TWIG_PROPERTY(object, Z_STRVAL_P(item)); // this is obviously wrong + ret = TWIG_PROPERTY(object, Z_STRVAL_P(item)); // this is obviously wrong + RETVAL_ZVAL(ret, 1, 0); } } /* -- 1.7.2.5