summaryrefslogtreecommitdiff
path: root/Zend/tests/bug63305.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 /Zend/tests/bug63305.phpt
parenteaeecc523b665cfa856a376b9c55ca7fc9b7b596 (diff)
downloadphp-git-162aa1a5fc96b3dd7e3420c6882607b361801fbd.tar.gz
Deprecate __autoload()
Diffstat (limited to 'Zend/tests/bug63305.phpt')
-rw-r--r--Zend/tests/bug63305.phpt7
1 files changed, 4 insertions, 3 deletions
diff --git a/Zend/tests/bug63305.phpt b/Zend/tests/bug63305.phpt
index 4bd3a4dbeb..bd18ccbb1c 100644
--- a/Zend/tests/bug63305.phpt
+++ b/Zend/tests/bug63305.phpt
@@ -2,9 +2,8 @@
Bug #63305 (zend_mm_heap corrupted with traits)
--FILE--
<?php
-new Attachment("");
-function __autoload($class) {
+spl_autoload_register(function ($class) {
switch ($class) {
case "Attachment":
eval(<<<'PHP'
@@ -36,7 +35,9 @@ PHP
break;
}
return TRUE;
-}
+});
+
+new Attachment("");
echo "okey";
?>
--EXPECT--