@@ -426,13 +426,25 @@ static void register_standard_class(TSRMLS_D)
426
426
zend_hash_add (CG (class_table ), "stdclass" , sizeof ("stdclass" ), & zend_standard_class_def , sizeof (zend_class_entry * ), NULL );
427
427
}
428
428
429
+ #ifdef ZTS
430
+ static zend_bool asp_tags_default = 0 ;
431
+ static zend_bool short_tags_default = 1 ;
432
+ static zend_bool ct_pass_ref_default = 1 ;
433
+ static zend_bool extended_info_default = 0 ;
434
+ #else
435
+ # define asp_tags_default 0
436
+ # define short_tags_default 1
437
+ # define ct_pass_ref_default 1
438
+ # define extended_info_default 0
439
+ #endif
440
+
429
441
static void zend_set_default_compile_time_values (TSRMLS_D )
430
442
{
431
443
/* default compile-time values */
432
- CG (asp_tags ) = 0 ;
433
- CG (short_tags ) = 1 ;
434
- CG (allow_call_time_pass_reference ) = 1 ;
435
- CG (extended_info ) = 0 ;
444
+ CG (asp_tags ) = asp_tags_default ;
445
+ CG (short_tags ) = short_tags_default ;
446
+ CG (allow_call_time_pass_reference ) = ct_pass_ref_default ;
447
+ CG (extended_info ) = extended_info_default ;
436
448
}
437
449
438
450
@@ -695,6 +707,12 @@ void zend_post_startup(TSRMLS_D)
695
707
* GLOBAL_FUNCTION_TABLE = * compiler_globals -> function_table ;
696
708
* GLOBAL_CLASS_TABLE = * compiler_globals -> class_table ;
697
709
* GLOBAL_CONSTANTS_TABLE = * executor_globals -> zend_constants ;
710
+
711
+ asp_tags_default = CG (asp_tags );
712
+ short_tags_default = CG (short_tags );
713
+ ct_pass_ref_default = CG (allow_call_time_pass_reference );
714
+ extended_info_default = CG (extended_info );
715
+
698
716
zend_destroy_rsrc_list (& EG (persistent_list ) TSRMLS_CC );
699
717
free (compiler_globals -> function_table );
700
718
free (compiler_globals -> class_table );
0 commit comments