From: Tugdual Saunier Date: Tue, 23 Jul 2013 19:36:05 +0000 (+0200) Subject: Added test case for issue #1126 X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=4ce9cbf4861e24e0b62f28c0c676f1d7c341d49c;p=web%2Fkonrad%2Ftwig.git Added test case for issue #1126 --- diff --git a/test/Twig/Tests/Fixtures/regression/issue_1126.test b/test/Twig/Tests/Fixtures/regression/issue_1126.test new file mode 100644 index 0000000..846eb56 --- /dev/null +++ b/test/Twig/Tests/Fixtures/regression/issue_1126.test @@ -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.