File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2058,7 +2058,7 @@ PHP_FUNCTION(session_set_save_handler)
2058
2058
2059
2059
/* add shutdown function, removing the old one if it exists */
2060
2060
if (!register_user_shutdown_function ("session_shutdown" , sizeof ("session_shutdown" ) - 1 , & shutdown_function_entry )) {
2061
- // zval_ptr_dtor(&shutdown_function_entry.function_name );
2061
+ zval_ptr_dtor (& callable );
2062
2062
php_error_docref (NULL , E_WARNING , "Unable to register session shutdown function" );
2063
2063
RETURN_FALSE ;
2064
2064
}
@@ -2677,8 +2677,7 @@ PHP_FUNCTION(session_register_shutdown)
2677
2677
ZEND_ASSERT (result == SUCCESS );
2678
2678
2679
2679
if (!append_user_shutdown_function (& shutdown_function_entry )) {
2680
- zval_ptr_dtor (& shutdown_function_entry .fci .function_name );
2681
- //efree(shutdown_function_entry);
2680
+ zval_ptr_dtor (& callable );
2682
2681
2683
2682
/* Unable to register shutdown function, presumably because of lack
2684
2683
* of memory, so flush the session now. It would be done in rshutdown
You can’t perform that action at this time.
0 commit comments