summaryrefslogtreecommitdiff
path: root/ext/spl/tests/class_implements_variation.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2017-01-30 22:28:17 +0100
committerNikita Popov <nikita.ppv@gmail.com>2017-02-03 18:52:57 +0100
commit162aa1a5fc96b3dd7e3420c6882607b361801fbd (patch)
tree9c03b8d0a1b41824c92550df2192eef4ec2c4492 /ext/spl/tests/class_implements_variation.phpt
parenteaeecc523b665cfa856a376b9c55ca7fc9b7b596 (diff)
downloadphp-git-162aa1a5fc96b3dd7e3420c6882607b361801fbd.tar.gz
Deprecate __autoload()
Diffstat (limited to 'ext/spl/tests/class_implements_variation.phpt')
-rw-r--r--ext/spl/tests/class_implements_variation.phpt9
1 files changed, 4 insertions, 5 deletions
diff --git a/ext/spl/tests/class_implements_variation.phpt b/ext/spl/tests/class_implements_variation.phpt
index 84a52ab2da..4d9e88622d 100644
--- a/ext/spl/tests/class_implements_variation.phpt
+++ b/ext/spl/tests/class_implements_variation.phpt
@@ -15,15 +15,14 @@ class fs {}
var_dump(class_implements(new fs));
var_dump(class_implements('fs'));
+spl_autoload_register(function ($classname) {
+ echo "attempting to autoload $classname\n";
+});
+
echo "\n--- testing autoload ---\n";
var_dump(class_implements('non_existent'));
var_dump(class_implements('non_existent2', false));
-
-function __autoload($classname) {
- echo "attempting to autoload $classname\n";
-}
-
?>
===DONE===
--EXPECTF--