diff options
author | Felipe Pena <felipe@php.net> | 2011-06-07 22:58:38 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2011-06-07 22:58:38 +0000 |
commit | bf07dcd506f4a8b7e1bf4601e1c75a20dca106f4 (patch) | |
tree | 9a79f97790fb969ec0573fcb0eb5abcc5fac8e93 /Zend/tests/bug55007.phpt | |
parent | b800ad040c22c95a9c00b70b9f275a3dd39066ac (diff) | |
download | php-git-bf07dcd506f4a8b7e1bf4601e1c75a20dca106f4.tar.gz |
- Fixed bug #55007 (compiler fail after previous fail)
Diffstat (limited to 'Zend/tests/bug55007.phpt')
-rw-r--r-- | Zend/tests/bug55007.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/bug55007.phpt b/Zend/tests/bug55007.phpt new file mode 100644 index 0000000000..12fbf120a8 --- /dev/null +++ b/Zend/tests/bug55007.phpt @@ -0,0 +1,23 @@ +--TEST-- +Bug #55007 (compiler fail after previous fail) +--FILE-- +<?php + +function __autoload($classname) { + if ('CompileErrorClass'==$classname) eval('class CompileErrorClass { function foo() { $a[] } }'); + if ('MyErrorHandler'==$classname) eval('class MyErrorHandler { function __construct() { print "My error handler runs.\n"; } }'); +} + +function shutdown() { + new MyErrorHandler(); +} + + +register_shutdown_function('shutdown'); + +new CompileErrorClass(); + +?> +--EXPECTF-- +Fatal error: Cannot use [] for reading in %s(%d) : eval()'d code on line %d +My error handler runs. |