File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 9
9
php_message_handler_for_zend). (ilutov)
10
10
. Fixed bug GH-12758 / GH-12768 (Invalid opline in OOM handlers within
11
11
ZEND_FUNC_GET_ARGS and ZEND_BIND_STATIC). (Florian Engelhardt)
12
+ . Fix various missing NULL checks. (nielsdos, dstogov)
12
13
13
14
- Date:
14
15
. Fixed improbably integer overflow while parsing really large (or small)
Original file line number Diff line number Diff line change @@ -585,8 +585,10 @@ PHP_FUNCTION(spl_autoload_unregister)
585
585
586
586
if (fcc .function_handler && zend_string_equals_literal (
587
587
fcc .function_handler -> common .function_name , "spl_autoload_call" )) {
588
- /* Don't destroy the hash table, as we might be iterating over it right now. */
589
- zend_hash_clean (spl_autoload_functions );
588
+ if (spl_autoload_functions ) {
589
+ /* Don't destroy the hash table, as we might be iterating over it right now. */
590
+ zend_hash_clean (spl_autoload_functions );
591
+ }
590
592
RETURN_TRUE ;
591
593
}
592
594
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ spl_autoload_unregister("spl_autoload_call") without registrations
3
+ --FILE--
4
+ <?php
5
+ var_dump (spl_autoload_unregister ("spl_autoload_call " ));
6
+ ?>
7
+ Done
8
+ --EXPECT--
9
+ bool(true)
10
+ Done
You can’t perform that action at this time.
0 commit comments