summaryrefslogtreecommitdiffstats
path: root/msgpack-pr118.patch
blob: b740b5137070b3599804fa88abc16e92bf3f9b21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 99f9db8cd68cf458b330047b8d1cc0f15240abf2 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Fri, 14 Apr 2017 09:23:39 +0200
Subject: [PATCH] use spl_autoload_register (to avoid deprecation warning with
 7.2)

---
 tests/019.phpt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/019.phpt b/tests/019.phpt
index 46cccb3..693f5cf 100644
--- a/tests/019.phpt
+++ b/tests/019.phpt
@@ -17,7 +17,7 @@ function test($type, $variable, $test) {
     echo $test || $unserialized->b == 2 ? 'OK' : 'ERROR', PHP_EOL;
 }
 
-function __autoload($classname) {
+function test_autoload($classname) {
     class Obj {
         var $a;
         var $b;
@@ -28,6 +28,7 @@ function __autoload($classname) {
         }
     }
 }
+spl_autoload_register('test_autoload');
 
 test('autoload', '83c0a34f626aa16101a16202', false);
 ?>