diff options
Diffstat (limited to 'Zend/tests/bug26697.phpt')
-rw-r--r-- | Zend/tests/bug26697.phpt | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Zend/tests/bug26697.phpt b/Zend/tests/bug26697.phpt index 8266a23e34..8dda17028a 100644 --- a/Zend/tests/bug26697.phpt +++ b/Zend/tests/bug26697.phpt @@ -1,24 +1,21 @@ --TEST-- Bug #26697 (calling class_exists on a nonexistent class in __autoload results in segfault) ---SKIPIF-- -<?php if (function_exists('__autoload')) die('skip __autoload() declared in auto_prepend_file');?> --FILE-- <?php -function __autoload($name) -{ +spl_autoload_register(function ($name) { echo __METHOD__ . "($name)\n"; var_dump(class_exists('NotExistingClass')); echo __METHOD__ . "($name), done\n"; -} +}); var_dump(class_exists('NotExistingClass')); ?> ===DONE=== --EXPECTF-- -__autoload(NotExistingClass) +{closure}(NotExistingClass) bool(false) -__autoload(NotExistingClass), done +{closure}(NotExistingClass), done bool(false) ===DONE=== |