somewhere into the Engine. (there's still a new bug in strtok - hunting;-)
PHP_RSHUTDOWN_FUNCTION(basic)
{
if (BG(strtok_zval))
- zval_ptr_dtor(BG(strtok_zval));
+ zval_ptr_dtor(&BG(strtok_zval));
BG(strtok_string) = NULL;
BG(strtok_zval) = NULL;
#ifdef HAVE_PUTENV
typedef struct {
HashTable *user_shutdown_function_names;
HashTable putenv_ht;
- zval **strtok_zval;
+ zval *strtok_zval;
char *strtok_string;
char *locale_string;
char *strtok_last;
zval_add_ref(str);
if (BG(strtok_zval))
- zval_ptr_dtor(BG(strtok_zval));
- BG(strtok_zval) = str;
+ zval_ptr_dtor(&BG(strtok_zval));
+ BG(strtok_zval) = *str;
BG(strtok_last) = BG(strtok_string) = Z_STRVAL_PP(str);
BG(strtok_len) = Z_STRLEN_PP(str);