From 2dffee98e9c72dd90a337ebc6e5c61f1dc73c9ef Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Mon, 25 Jul 2011 16:24:38 +0100 Subject: [PATCH] Added a return so that the function ends after throwing an exception. This fixes a segfault too. --- twig.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/twig.c b/twig.c index f6f4e67..2b36948 100644 --- a/twig.c +++ b/twig.c @@ -774,6 +774,7 @@ PHP_FUNCTION(twig_template_get_attributes) RETURN_FALSE; } TWIG_THROW_EXCEPTION("Twig_Error_Runtime", "Item \"%s\" for \"%s\" does not exist", item, object); + return; } /* // get some information about the object -- 1.7.2.5