From: Derick Rethans Date: Mon, 25 Jul 2011 15:24:38 +0000 (+0100) Subject: Added a return so that the function ends after throwing an exception. This fixes... X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=2dffee98e9c72dd90a337ebc6e5c61f1dc73c9ef;p=web%2Fkonrad%2Ftwig.git Added a return so that the function ends after throwing an exception. This fixes a segfault too. --- 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