Added test case for issue #1126

This commit is contained in:
Tugdual Saunier
2013-07-23 21:36:05 +02:00
parent 9fa5410a86
commit 4ce9cbf486
@@ -0,0 +1,15 @@
--TEST--
C extension causes php5-fpm to crash
--TEMPLATE--
{{ data.test1 }}
--DATA--
class test
{
public function __isset($key) {
throw new Exception("Hey! Don't try to isset me!");
}
}
return array('data' => new test())
--EXCEPTION--
Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Hey! Don't try to isset me!") in "index.twig" at line 2.