Skip to content

Commit 99f9db8

Browse files
committed
use spl_autoload_register (to avoid deprecation warning with 7.2)
1 parent 6472b9f commit 99f9db8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/019.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function test($type, $variable, $test) {
1717
echo $test || $unserialized->b == 2 ? 'OK' : 'ERROR', PHP_EOL;
1818
}
1919

20-
function __autoload($classname) {
20+
function test_autoload($classname) {
2121
class Obj {
2222
var $a;
2323
var $b;
@@ -28,6 +28,7 @@ function __autoload($classname) {
2828
}
2929
}
3030
}
31+
spl_autoload_register('test_autoload');
3132

3233
test('autoload', '83c0a34f626aa16101a16202', false);
3334
?>

0 commit comments

Comments
 (0)