Skip to content

Commit 28efce4

Browse files
author
Sascha Schumann
committed
Reset strtok_string, so that strtok can be used in all session handler
functions.
1 parent fd2c27c commit 28efce4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/standard/basic_functions.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,7 @@ PHP_RSHUTDOWN_FUNCTION(basic)
885885
BLS_FETCH();
886886

887887
STR_FREE(BG(strtok_string));
888+
BG(strtok_string) = NULL;
888889
#ifdef HAVE_PUTENV
889890
zend_hash_destroy(&BG(putenv_ht));
890891
#endif

0 commit comments

Comments
 (0)