From 243043134c27682f122bc0d276452dbe776f4e38 Mon Sep 17 00:00:00 2001 From: Tugdual Saunier Date: Tue, 23 Jul 2013 21:15:15 +0200 Subject: [PATCH] Fixed #1126 --- ext/twig/twig.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/twig/twig.c b/ext/twig/twig.c index 0e5a0ef..3ba9ff2 100644 --- a/ext/twig/twig.c +++ b/ext/twig/twig.c @@ -217,8 +217,8 @@ zval *TWIG_CALL_USER_FUNC_ARRAY(zval *object, char *function, zval *arguments TS fci.no_separation = 0; if (zend_call_function(&fci, NULL TSRMLS_CC) == FAILURE) { - FREE_DTOR(zfunction) - zend_throw_exception_ex(zend_exception_get_default(TSRMLS_C), 0 TSRMLS_CC, "Could not execute %s::%s()", zend_get_class_entry(object TSRMLS_CC)->name, function TSRMLS_CC); + ALLOC_INIT_ZVAL(retval_ptr); + ZVAL_BOOL(retval_ptr, 0); } if (args) { -- 1.7.2.5