mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
Added test case for issue #1126
This commit is contained in:
@@ -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.
|
||||||
Reference in New Issue
Block a user