File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -235,6 +235,7 @@ ZEND_FUNCTION(autoload_unregister_class)
235
235
* This is forward-ported from SPL */
236
236
if (ZEND_FCC_INITIALIZED (fcc ) && fcc .function_handler -> type == ZEND_INTERNAL_FUNCTION &&
237
237
fcc .function_handler -> internal_function .handler == zif_autoload_call_class ) {
238
+ zend_error (E_DEPRECATED , "Flushing the class autoloader table by passing autoload_call_class() is deprecated" );
238
239
// Don't destroy the hash table, as we might be iterating over it right now.
239
240
zend_hash_clean (autoloader_class_autoload_functions );
240
241
RETURN_TRUE ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ spl_autoload_unregister('spl_autoload');
35
35
var_dump (spl_autoload_functions ());
36
36
37
37
?>
38
- --EXPECT --
38
+ --EXPECTF --
39
39
array(0) {
40
40
}
41
41
array(1) {
@@ -56,6 +56,8 @@ array(2) {
56
56
[1]=>
57
57
string(16) "SplAutoloadTest2"
58
58
}
59
+
60
+ Deprecated: Flushing the class autoloader table by passing autoload_call_class() is deprecated in %s on line %d
59
61
array(0) {
60
62
}
61
63
array(1) {
You can’t perform that action at this time.
0 commit comments