File tree 3 files changed +10
-10
lines changed
3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -672,8 +672,8 @@ static void cgi_php_import_environment_variables(zval *array_ptr)
672
672
673
673
if (Z_TYPE (PG (http_globals )[TRACK_VARS_ENV ]) == IS_ARRAY &&
674
674
Z_ARR_P (array_ptr ) != Z_ARR (PG (http_globals )[TRACK_VARS_ENV ])) {
675
- zval_dtor ( array_ptr );
676
- ZVAL_DUP (array_ptr , & PG (http_globals )[TRACK_VARS_ENV ]);
675
+ zend_array_destroy ( Z_ARR_P ( array_ptr ) );
676
+ Z_ARR_P (array_ptr ) = zend_array_dup ( Z_ARR ( PG (http_globals )[TRACK_VARS_ENV ]) );
677
677
return ;
678
678
}
679
679
Original file line number Diff line number Diff line change @@ -568,15 +568,15 @@ void cgi_php_import_environment_variables(zval *array_ptr) /* {{{ */
568
568
Z_ARR_P (array_ptr ) != Z_ARR (PG (http_globals )[TRACK_VARS_ENV ]) &&
569
569
zend_hash_num_elements (Z_ARRVAL (PG (http_globals )[TRACK_VARS_ENV ])) > 0
570
570
) {
571
- zval_dtor ( array_ptr );
572
- ZVAL_DUP (array_ptr , & PG (http_globals )[TRACK_VARS_ENV ]);
571
+ zend_array_destroy ( Z_ARR_P ( array_ptr ) );
572
+ Z_ARR_P (array_ptr ) = zend_array_dup ( Z_ARR ( PG (http_globals )[TRACK_VARS_ENV ]) );
573
573
return ;
574
574
} else if (Z_TYPE (PG (http_globals )[TRACK_VARS_SERVER ]) == IS_ARRAY &&
575
575
Z_ARR_P (array_ptr ) != Z_ARR (PG (http_globals )[TRACK_VARS_SERVER ]) &&
576
576
zend_hash_num_elements (Z_ARRVAL (PG (http_globals )[TRACK_VARS_SERVER ])) > 0
577
577
) {
578
- zval_dtor ( array_ptr );
579
- ZVAL_DUP (array_ptr , & PG (http_globals )[TRACK_VARS_SERVER ]);
578
+ zend_array_destroy ( Z_ARR_P ( array_ptr ) );
579
+ Z_ARR_P (array_ptr ) = zend_array_dup ( Z_ARR ( PG (http_globals )[TRACK_VARS_SERVER ]) );
580
580
return ;
581
581
}
582
582
Original file line number Diff line number Diff line change @@ -244,15 +244,15 @@ static void litespeed_php_import_environment_variables(zval *array_ptr)
244
244
Z_ARR_P (array_ptr ) != Z_ARR (PG (http_globals )[TRACK_VARS_ENV ]) &&
245
245
zend_hash_num_elements (Z_ARRVAL (PG (http_globals )[TRACK_VARS_ENV ])) > 0
246
246
) {
247
- zval_dtor ( array_ptr );
248
- ZVAL_DUP (array_ptr , & PG (http_globals )[TRACK_VARS_ENV ]);
247
+ zend_array_destroy ( Z_ARR_P ( array_ptr ) );
248
+ Z_ARR_P (array_ptr ) = zend_array_dup ( Z_ARR ( PG (http_globals )[TRACK_VARS_ENV ]) );
249
249
return ;
250
250
} else if (Z_TYPE (PG (http_globals )[TRACK_VARS_SERVER ]) == IS_ARRAY &&
251
251
Z_ARR_P (array_ptr ) != Z_ARR (PG (http_globals )[TRACK_VARS_SERVER ]) &&
252
252
zend_hash_num_elements (Z_ARRVAL (PG (http_globals )[TRACK_VARS_SERVER ])) > 0
253
253
) {
254
- zval_dtor ( array_ptr );
255
- ZVAL_DUP (array_ptr , & PG (http_globals )[TRACK_VARS_SERVER ]);
254
+ zend_array_destroy ( Z_ARR_P ( array_ptr ) );
255
+ Z_ARR_P (array_ptr ) = zend_array_dup ( Z_ARR ( PG (http_globals )[TRACK_VARS_SERVER ]) );
256
256
return ;
257
257
}
258
258
You can’t perform that action at this time.
0 commit comments