From: Derick Rethans Date: Thu, 7 Jul 2011 13:05:21 +0000 (+0100) Subject: We need to use strlen on hash keys. X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=3c208ff875ae9fa19d4c8c7a277a8ea53eb69a32;p=web%2Fkonrad%2Ftwig.git We need to use strlen on hash keys. --- diff --git a/twig.c b/twig.c index e93e5f5..8b7b84b 100644 --- a/twig.c +++ b/twig.c @@ -657,7 +657,7 @@ PHP_FUNCTION(twig_template_get_attributes) zval *tmp_class, *tmp_properties, *tmp_item, *tmp_object_item = NULL; tmp_class = TWIG_GET_ARRAY_ELEMENT(tmp_self_cache, class_name, strlen(class_name)); - tmp_properties = TWIG_GET_ARRAY_ELEMENT(tmp_class, "properties", sizeof("properties")); + tmp_properties = TWIG_GET_ARRAY_ELEMENT(tmp_class, "properties", strlen("properties")); tmp_item = TWIG_GET_ARRAY_ELEMENT_ZVAL(tmp_properties, item); if (tmp_item) {