summaryrefslogtreecommitdiff
path: root/Zend/tests/bug61011.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug61011.phpt')
-rw-r--r--Zend/tests/bug61011.phpt5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zend/tests/bug61011.phpt b/Zend/tests/bug61011.phpt
index 599017860b..dc0aca64f8 100644
--- a/Zend/tests/bug61011.phpt
+++ b/Zend/tests/bug61011.phpt
@@ -2,9 +2,10 @@
Bug #61011 (Crash when an exception is thrown by __autoload accessing a static property)
--FILE--
<?php
-function __autoload($name) {
+spl_autoload_register(function ($name) {
throw new Exception($name);
-}
+});
+
try {
echo AAA::$a; //zend_fetch_var_address_helper
} catch (Exception $e) {