mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 19:36:43 +00:00
Added a return so that the function ends after throwing an exception. This fixes a segfault too.
This commit is contained in:
@@ -774,6 +774,7 @@ PHP_FUNCTION(twig_template_get_attributes)
|
|||||||
RETURN_FALSE;
|
RETURN_FALSE;
|
||||||
}
|
}
|
||||||
TWIG_THROW_EXCEPTION("Twig_Error_Runtime", "Item \"%s\" for \"%s\" does not exist", item, object);
|
TWIG_THROW_EXCEPTION("Twig_Error_Runtime", "Item \"%s\" for \"%s\" does not exist", item, object);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
// get some information about the object
|
// get some information about the object
|
||||||
|
|||||||
Reference in New Issue
Block a user