From 4ce9cbf4861e24e0b62f28c0c676f1d7c341d49c Mon Sep 17 00:00:00 2001 From: Tugdual Saunier Date: Tue, 23 Jul 2013 21:36:05 +0200 Subject: [PATCH] Added test case for issue #1126 --- .../Twig/Tests/Fixtures/regression/issue_1126.test | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 test/Twig/Tests/Fixtures/regression/issue_1126.test 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. -- 1.7.2.5