mirror of
https://github.com/php/php-src.git
synced 2024-12-28 11:20:29 +08:00
test for bug #61011
This commit is contained in:
parent
f86d90d27b
commit
4b86d681bb
17
Zend/tests/bug61011.phpt
Normal file
17
Zend/tests/bug61011.phpt
Normal file
@ -0,0 +1,17 @@
|
||||
--TEST--
|
||||
Bug #61011 (Crash when an exception is thrown by __autoload accessing a static property)
|
||||
--XFAILD--
|
||||
#61011 have not been fixed yet
|
||||
--FILE--
|
||||
<?php
|
||||
function __autoload($class) {
|
||||
throw new Exception($class);
|
||||
}
|
||||
|
||||
try {
|
||||
NoExistsClass::$property;
|
||||
} catch (Exception $e) {
|
||||
}
|
||||
echo 'okey';
|
||||
--EXPECT--
|
||||
okey
|
Loading…
Reference in New Issue
Block a user