File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
Zend /
tests /
bug61011.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue May 29 12:34:36 2012 UTC (12 years, 10 months 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,
HEAD
php 5.4.3+patches
--TEST--
Bug #61011 (Crash when an exception is thrown by __autoload accessing a static property)
--FILE--
<?php
function __autoload($name) {
throw new Exception($name);
}
try {
echo AAA::$a; //zend_fetch_var_address_helper
} catch (Exception $e) {
try {
echo AAA::XXX; //ZEND_FETCH_CONSTANT
} catch (Exception $e) {
try {
echo AAA::foo(); //ZEND_INIT_STATIC_METHOD_CALL
} catch (Exception $e) {
try {
unset(AAA::$a); // ZEND_UNSET_VAR
} catch (Exception $e){
try {
isset(AAAA::$a); // ZEND_ISSET_ISEMPTY_VAR
} catch (Exception $e) {
try {
$a = array("AAA", "foo");
$a(); //ZEND_INIT_FCALL_BY_NAME
} catch (Exception $e) {
}
}
}
}
}
}
echo 'okey';
--EXPECT--
okey
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>