@@ -151,7 +151,6 @@ MBSTRING_API SAPI_TREAT_DATA_FUNC(mbstr_treat_data)
151151
152152 info .data_type = arg ;
153153 info .separator = separator ;
154- info .force_register_globals = 0 ;
155154 info .report_errors = 0 ;
156155 info .to_encoding = MBSTRG (internal_encoding );
157156 info .to_language = MBSTRG (language );
@@ -210,13 +209,6 @@ enum mbfl_no_encoding _php_mb_encoding_handler_ex(const php_mb_encoding_handler_
210209 mbfl_string_init_set (& resvar , info -> to_language , info -> to_encoding );
211210 mbfl_string_init_set (& resval , info -> to_language , info -> to_encoding );
212211
213- /* register_globals stuff
214- * XXX: this feature is going to be deprecated? */
215-
216- if (info -> force_register_globals && !(prev_rg_state = PG (register_globals ))) {
217- zend_alter_ini_entry ("register_globals" , sizeof ("register_globals" ), "1" , sizeof ("1" )- 1 , PHP_INI_PERDIR , PHP_INI_STAGE_RUNTIME );
218- }
219-
220212 if (!res || * res == '\0' ) {
221213 goto out ;
222214 }
@@ -346,11 +338,6 @@ enum mbfl_no_encoding _php_mb_encoding_handler_ex(const php_mb_encoding_handler_
346338 }
347339
348340out :
349- /* register_global stuff */
350- if (info -> force_register_globals && !prev_rg_state ) {
351- zend_alter_ini_entry ("register_globals" , sizeof ("register_globals" ), "0" , sizeof ("0" )- 1 , PHP_INI_PERDIR , PHP_INI_STAGE_RUNTIME );
352- }
353-
354341 if (convd != NULL ) {
355342 MBSTRG (illegalchars ) += mbfl_buffer_illegalchars (convd );
356343 mbfl_buffer_converter_delete (convd );
@@ -376,7 +363,6 @@ SAPI_POST_HANDLER_FUNC(php_mb_post_handler)
376363
377364 info .data_type = PARSE_POST ;
378365 info .separator = "&" ;
379- info .force_register_globals = 0 ;
380366 info .report_errors = 0 ;
381367 info .to_encoding = MBSTRG (internal_encoding );
382368 info .to_language = MBSTRG (language );
0 commit comments