You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Zend/tests/bug70898.phpt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,4 +13,4 @@ try {
13
13
}
14
14
?>
15
15
--EXPECT--
16
-
array_map(): Argument #1 ($callback) must be a valid callback, function "0000000000000000000000000000000000" not found or invalid function name
16
+
array_map(): Argument #1 ($callback) must be a valid callback or null, function "0000000000000000000000000000000000" not found or invalid function name
Copy file name to clipboardExpand all lines: ext/spl/tests/spl_autoload_001.phpt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -100,4 +100,4 @@ TestFunc2(TestClass)
100
100
%stestclass.class.inc
101
101
bool(true)
102
102
===NOFUNCTION===
103
-
spl_autoload_register(): Argument #1 ($callback) must be a valid callback, function "unavailable_autoload_function" not found or invalid function name
103
+
spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, function "unavailable_autoload_function" not found or invalid function name
Copy file name to clipboardExpand all lines: ext/spl/tests/spl_autoload_005.phpt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ catch(Exception $e)
43
43
44
44
?>
45
45
--EXPECT--
46
-
spl_autoload_register(): Argument #1 ($callback) must be a valid callback, non-static method MyAutoLoader::autoLoad() cannot be called statically
46
+
spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, non-static method MyAutoLoader::autoLoad() cannot be called statically
Copy file name to clipboardExpand all lines: ext/spl/tests/spl_autoload_007.phpt
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -52,32 +52,32 @@ foreach($funcs as $idx => $func)
52
52
?>
53
53
--EXPECTF--
54
54
string(22) "MyAutoLoader::notExist"
55
-
spl_autoload_register(): Argument #1 ($callback) must be a valid callback, class MyAutoLoader does not have a method "notExist"
55
+
spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, class MyAutoLoader does not have a method "notExist"
56
56
57
57
string(22) "MyAutoLoader::noAccess"
58
-
spl_autoload_register(): Argument #1 ($callback) must be a valid callback, cannot access protected method MyAutoLoader::noAccess()
58
+
spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, cannot access protected method MyAutoLoader::noAccess()
59
59
60
60
string(22) "MyAutoLoader::autoLoad"
61
61
ok
62
62
63
63
string(22) "MyAutoLoader::dynaLoad"
64
-
spl_autoload_register(): Argument #1 ($callback) must be a valid callback, non-static method MyAutoLoader::dynaLoad() cannot be called statically
64
+
spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, non-static method MyAutoLoader::dynaLoad() cannot be called statically
65
65
66
66
array(2) {
67
67
[0]=>
68
68
string(12) "MyAutoLoader"
69
69
[1]=>
70
70
string(8) "notExist"
71
71
}
72
-
spl_autoload_register(): Argument #1 ($callback) must be a valid callback, class MyAutoLoader does not have a method "notExist"
72
+
spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, class MyAutoLoader does not have a method "notExist"
73
73
74
74
array(2) {
75
75
[0]=>
76
76
string(12) "MyAutoLoader"
77
77
[1]=>
78
78
string(8) "noAccess"
79
79
}
80
-
spl_autoload_register(): Argument #1 ($callback) must be a valid callback, cannot access protected method MyAutoLoader::noAccess()
80
+
spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, cannot access protected method MyAutoLoader::noAccess()
81
81
82
82
array(2) {
83
83
[0]=>
@@ -93,7 +93,7 @@ array(2) {
93
93
[1]=>
94
94
string(8) "dynaLoad"
95
95
}
96
-
spl_autoload_register(): Argument #1 ($callback) must be a valid callback, non-static method MyAutoLoader::dynaLoad() cannot be called statically
96
+
spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, non-static method MyAutoLoader::dynaLoad() cannot be called statically
97
97
98
98
array(2) {
99
99
[0]=>
@@ -102,7 +102,7 @@ array(2) {
102
102
[1]=>
103
103
string(8) "notExist"
104
104
}
105
-
spl_autoload_register(): Argument #1 ($callback) must be a valid callback, class MyAutoLoader does not have a method "notExist"
105
+
spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, class MyAutoLoader does not have a method "notExist"
106
106
107
107
array(2) {
108
108
[0]=>
@@ -111,7 +111,7 @@ array(2) {
111
111
[1]=>
112
112
string(8) "noAccess"
113
113
}
114
-
spl_autoload_register(): Argument #1 ($callback) must be a valid callback, cannot access protected method MyAutoLoader::noAccess()
114
+
spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, cannot access protected method MyAutoLoader::noAccess()
Copy file name to clipboardExpand all lines: ext/spl/tests/spl_autoload_008.phpt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ Exception: Bla
81
81
int(0)
82
82
====2====
83
83
string(22) "MyAutoLoader::dynaLoad"
84
-
TypeError: spl_autoload_register(): Argument #1 ($callback) must be a valid callback, non-static method MyAutoLoader::dynaLoad() cannot be called statically
84
+
TypeError: spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, non-static method MyAutoLoader::dynaLoad() cannot be called statically
85
85
int(0)
86
86
====3====
87
87
array(2) {
@@ -101,7 +101,7 @@ array(2) {
101
101
[1]=>
102
102
string(8) "dynaLoad"
103
103
}
104
-
TypeError: spl_autoload_register(): Argument #1 ($callback) must be a valid callback, non-static method MyAutoLoader::dynaLoad() cannot be called statically
104
+
TypeError: spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, non-static method MyAutoLoader::dynaLoad() cannot be called statically
0 commit comments