From 228d2b0351d8140f72e2ed8750a04e47fa1fcb87 Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Mon, 13 Aug 2012 22:25:20 +0200 Subject: [PATCH] [ext] use only read_property handler --- ext/twig/twig.c | 14 -------------- 1 files changed, 0 insertions(+), 14 deletions(-) diff --git a/ext/twig/twig.c b/ext/twig/twig.c index 498392d..a32f3a3 100644 --- a/ext/twig/twig.c +++ b/ext/twig/twig.c @@ -278,22 +278,8 @@ zval *TWIG_GET_ARRAY_ELEMENT(zval *class, char *prop_name, int prop_name_length zval *TWIG_PROPERTY(zval *object, zval *propname TSRMLS_DC) { - char *prot_name; - int prot_name_length; zval *tmp = NULL; - tmp = TWIG_GET_ARRAY_ELEMENT(object, Z_STRVAL_P(propname), Z_STRLEN_P(propname) TSRMLS_CC); - if (tmp) { - return tmp; - } - - zend_mangle_property_name(&prot_name, &prot_name_length, "*", 1, Z_STRVAL_P(propname), Z_STRLEN_P(propname), 0); - tmp = TWIG_GET_ARRAY_ELEMENT(object, prot_name, prot_name_length TSRMLS_CC); - efree(prot_name); - if (tmp) { - return tmp; - } - if (Z_OBJ_HT_P(object)->read_property) { #if PHP_VERSION_ID >= 50400 tmp = Z_OBJ_HT_P(object)->read_property(object, propname, BP_VAR_IS, NULL TSRMLS_CC); -- 1.7.2.5