Use zend_string for arg_separators

This allows us to avoid a call to `zend_ini_str` which took 6% of the
profile on my i7-4790 for a call to `http_build_query`. Now we can just
grab the value from the globals.
In other files this can avoid some length recomputations.
This commit is contained in:
Niels Dossche 2025-04-26 14:30:59 +02:00
parent ed3096913d
commit 33ae76405f
9 changed files with 21 additions and 17 deletions

View file

@ -527,7 +527,7 @@ SAPI_API SAPI_TREAT_DATA_FUNC(php_default_treat_data)
switch (arg) {
case PARSE_GET:
case PARSE_STRING:
separator = PG(arg_separator).input;
separator = ZSTR_VAL(PG(arg_separator).input);
break;
case PARSE_COOKIE:
separator = ";\0";