File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
Zend /
tests /
bug55007.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 1 month ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
1: --TEST--
2: Bug #55007 (compiler fail after previous fail)
3: --FILE--
4: <?php
5:
6: function __autoload($classname) {
7: if ('CompileErrorClass'==$classname) eval('class CompileErrorClass { function foo() { $a[] } }');
8: if ('MyErrorHandler'==$classname) eval('class MyErrorHandler { function __construct() { print "My error handler runs.\n"; } }');
9: }
10:
11: function shutdown() {
12: new MyErrorHandler();
13: }
14:
15:
16: register_shutdown_function('shutdown');
17:
18: new CompileErrorClass();
19:
20: ?>
21: --EXPECTF--
22: Fatal error: Cannot use [] for reading in %s(%d) : eval()'d code on line %d
23: My error handler runs.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>