mirror of
https://github.com/php/php-src.git
synced 2026-04-19 05:51:02 +02:00
Enable asp_tags/short_tags/allow_call_time_pass_by_reference to work on a per-directory
basis as well
This commit is contained in:
@@ -258,6 +258,11 @@ static void compiler_globals_ctor(zend_compiler_globals *compiler_globals)
|
||||
zend_hash_copy(compiler_globals->class_table, global_class_table, (copy_ctor_func_t) zend_class_add_ref, &tmp_class, sizeof(zend_class_entry));
|
||||
|
||||
compiler_globals->extended_info = 0;
|
||||
|
||||
/* default compile-time values */
|
||||
compiler_globals->asp_tags = 0;
|
||||
compiler_globals->short_tags = 1;
|
||||
compiler_globals->allow_call_time_pass_reference = 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -232,9 +232,6 @@ typedef struct _zend_utility_functions {
|
||||
|
||||
|
||||
typedef struct _zend_utility_values {
|
||||
zend_bool short_tags;
|
||||
zend_bool asp_tags;
|
||||
zend_bool allow_call_time_pass_reference;
|
||||
char *import_use_extension;
|
||||
uint import_use_extension_length;
|
||||
} zend_utility_values;
|
||||
|
||||
@@ -90,9 +90,6 @@ void init_compiler(CLS_D ELS_DC)
|
||||
zend_llist_init(&CG(list_llist), sizeof(list_llist_element), NULL, 0);
|
||||
zend_llist_init(&CG(dimension_llist), sizeof(int), NULL, 0);
|
||||
zend_llist_init(&CG(filenames_list), sizeof(char *), free_filename, 0);
|
||||
CG(short_tags) = ZEND_UV(short_tags);
|
||||
CG(asp_tags) = ZEND_UV(asp_tags);
|
||||
CG(allow_call_time_pass_reference) = ZEND_UV(allow_call_time_pass_reference);
|
||||
CG(handle_op_arrays) = 1;
|
||||
CG(in_compilation) = 0;
|
||||
zend_init_rsrc_list(ELS_C);
|
||||
|
||||
Reference in New Issue
Block a user