From: Derick Rethans Date: Thu, 7 Jul 2011 12:06:13 +0000 (+0100) Subject: Made properties return properly. X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=508bb66bf7d512a7325a6a1353890aefea8641ec;p=konrad%2Ftwig.git Made properties return properly. --- 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); } } /*