Added a return so that the function ends after throwing an exception. This fixes a segfault too.

This commit is contained in:
Derick Rethans
2011-07-25 16:24:38 +01:00
parent e9c3eda05d
commit 2dffee98e9
+1
View File
@@ -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