diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2017-01-30 22:28:17 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-02-03 18:52:57 +0100 |
commit | 162aa1a5fc96b3dd7e3420c6882607b361801fbd (patch) | |
tree | 9c03b8d0a1b41824c92550df2192eef4ec2c4492 /ext/spl/tests/class_implements_variation.phpt | |
parent | eaeecc523b665cfa856a376b9c55ca7fc9b7b596 (diff) | |
download | php-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.phpt | 9 |
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-- |