File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ PHP NEWS
10
10
(Laruence)
11
11
12
12
- Core:
13
+ . Fixed bug #61922 (ZTS build doesn't accept zend.script_encoding config).
14
+ (Laruence)
13
15
. Fixed missing bound check in iptcparse(). (chris at chiappa.net)
14
16
. Fixed bug #61827 (incorrect \e processing on Windows) (Anatoliy)
15
17
. Fixed bug #61761 ('Overriding' a private static method with a different
Original file line number Diff line number Diff line change @@ -781,6 +781,8 @@ void zend_register_standard_ini_entries(TSRMLS_D) /* {{{ */
781
781
void zend_post_startup (TSRMLS_D ) /* {{{ */
782
782
{
783
783
#ifdef ZTS
784
+ zend_encoding * * script_encoding_list ;
785
+
784
786
zend_compiler_globals * compiler_globals = ts_resource (compiler_globals_id );
785
787
zend_executor_globals * executor_globals = ts_resource (executor_globals_id );
786
788
@@ -795,7 +797,12 @@ void zend_post_startup(TSRMLS_D) /* {{{ */
795
797
zend_destroy_rsrc_list (& EG (persistent_list ) TSRMLS_CC );
796
798
free (compiler_globals -> function_table );
797
799
free (compiler_globals -> class_table );
798
- compiler_globals_ctor (compiler_globals , tsrm_ls );
800
+ if ((script_encoding_list = (zend_encoding * * )compiler_globals -> script_encoding_list )) {
801
+ compiler_globals_ctor (compiler_globals , tsrm_ls );
802
+ compiler_globals -> script_encoding_list = (const zend_encoding * * )script_encoding_list ;
803
+ } else {
804
+ compiler_globals_ctor (compiler_globals , tsrm_ls );
805
+ }
799
806
free (EG (zend_constants ));
800
807
executor_globals_ctor (executor_globals , tsrm_ls );
801
808
global_persistent_list = & EG (persistent_list );
You can’t perform that action at this time.
0 commit comments