Home
last modified time | relevance | path

Searched refs:track_vars_array (Results 1 – 15 of 15) sorted by relevance

/PHP-8.1/main/
H A Dphp_variables.h35 PHPAPI void php_register_variable(const char *var, const char *val, zval *track_vars_array);
37 …p_register_variable_safe(const char *var, const char *val, size_t val_len, zval *track_vars_array);
38 PHPAPI void php_register_variable_ex(const char *var, zval *val, zval *track_vars_array);
40 PHPAPI void php_build_argv(const char *s, zval *track_vars_array);
H A Dphp_variables.c35 php_register_variable_safe(var, strval, strlen(strval), track_vars_array); in php_register_variable()
46 php_register_variable_ex(var, &new_entry, track_vars_array); in php_register_variable_safe()
86 if (track_vars_array && Z_TYPE_P(track_vars_array) == IS_ARRAY) { in php_register_variable_ex()
87 symtable1 = Z_ARRVAL_P(track_vars_array); in php_register_variable_ex()
170 if (track_vars_array) { in php_register_variable_ex()
171 ht = Z_ARRVAL_P(track_vars_array); in php_register_variable_ex()
622 PHPAPI void php_build_argv(const char *s, zval *track_vars_array) in php_build_argv() argument
627 if (!(SG(request_info).argc || track_vars_array)) { in php_build_argv()
670 if (track_vars_array && Z_TYPE_P(track_vars_array) == IS_ARRAY) { in php_build_argv()
672 zend_hash_update(Z_ARRVAL_P(track_vars_array), ZSTR_KNOWN(ZEND_STR_ARGV), &arr); in php_build_argv()
[all …]
H A Drfc1867.c54 …hp_register_variable(char *var, char *strval, size_t val_len, zval *track_vars_array, bool overrid…
157 …hp_register_variable(char *var, char *strval, size_t val_len, zval *track_vars_array, bool overrid… in safe_php_register_variable() argument
160 php_register_variable_safe(var, strval, val_len, track_vars_array); in safe_php_register_variable()
165 static void safe_php_register_variable_ex(char *var, zval *val, zval *track_vars_array, bool overri… in safe_php_register_variable_ex() argument
168 php_register_variable_ex(var, val, track_vars_array); in safe_php_register_variable_ex()
H A DSAPI.h239 void (*register_server_variables)(zval *track_vars_array);
/PHP-8.1/sapi/embed/
H A Dphp_embed.c114 static void php_embed_register_variables(zval *track_vars_array) in php_embed_register_variables() argument
116 php_import_environment_variables(track_vars_array); in php_embed_register_variables()
/PHP-8.1/sapi/fuzzer/
H A Dfuzzer-sapi.c92 static void register_variables(zval *track_vars_array) in register_variables() argument
94 php_import_environment_variables(track_vars_array); in register_variables()
/PHP-8.1/sapi/litespeed/
H A Dlsapi_main.c260 static void sapi_lsapi_register_variables(zval *track_vars_array) in sapi_lsapi_register_variables() argument
267 litespeed_php_import_environment_variables(track_vars_array); in sapi_lsapi_register_variables()
269 LSAPI_ForeachHeader( add_variable, track_vars_array ); in sapi_lsapi_register_variables()
270 LSAPI_ForeachEnv( add_variable, track_vars_array ); in sapi_lsapi_register_variables()
271 add_variable("PHP_SELF", 8, php_self, strlen( php_self ), track_vars_array ); in sapi_lsapi_register_variables()
273 php_import_environment_variables(track_vars_array); in sapi_lsapi_register_variables()
275 php_register_variable("PHP_SELF", php_self, track_vars_array); in sapi_lsapi_register_variables()
276 php_register_variable("SCRIPT_NAME", php_self, track_vars_array); in sapi_lsapi_register_variables()
277 php_register_variable("SCRIPT_FILENAME", script_filename, track_vars_array); in sapi_lsapi_register_variables()
278 php_register_variable("PATH_TRANSLATED", script_filename, track_vars_array); in sapi_lsapi_register_variables()
[all …]
/PHP-8.1/sapi/cli/
H A Dphp_cli_server.c622 php_register_variable_safe((char *)key, new_val, new_val_len, track_vars_array); in sapi_cli_server_register_variable()
627 zval *track_vars_array = va_arg(args, zval *); in sapi_cli_server_register_entry_cb() local
641 sapi_cli_server_register_variable(track_vars_array, key, *entry); in sapi_cli_server_register_entry_cb()
643 sapi_cli_server_register_variable(track_vars_array, real_key, *entry); in sapi_cli_server_register_entry_cb()
652 static void sapi_cli_server_register_variables(zval *track_vars_array) /* {{{ */ in sapi_cli_server_register_variables() argument
668 sapi_cli_server_register_variable(track_vars_array, "REMOTE_ADDR", addr); in sapi_cli_server_register_variables()
669 sapi_cli_server_register_variable(track_vars_array, "REMOTE_PORT", port); in sapi_cli_server_register_variables()
677 sapi_cli_server_register_variable(track_vars_array, "SERVER_SOFTWARE", tmp); in sapi_cli_server_register_variables()
683 sapi_cli_server_register_variable(track_vars_array, "SERVER_PROTOCOL", tmp); in sapi_cli_server_register_variables()
690 sapi_cli_server_register_variable(track_vars_array, "SERVER_PORT", tmp); in sapi_cli_server_register_variables()
[all …]
H A Dphp_cli.c328 static void sapi_cli_register_variables(zval *track_vars_array) /* {{{ */ in sapi_cli_register_variables() argument
336 php_import_environment_variables(track_vars_array); in sapi_cli_register_variables()
341 php_register_variable("PHP_SELF", php_self, track_vars_array); in sapi_cli_register_variables()
344 php_register_variable("SCRIPT_NAME", php_self, track_vars_array); in sapi_cli_register_variables()
349 php_register_variable("SCRIPT_FILENAME", script_filename, track_vars_array); in sapi_cli_register_variables()
352 php_register_variable("PATH_TRANSLATED", script_filename, track_vars_array); in sapi_cli_register_variables()
357 php_register_variable("DOCUMENT_ROOT", docroot, track_vars_array); in sapi_cli_register_variables()
/PHP-8.1/sapi/apache2handler/
H A Dsapi_apache2.c266 php_apache_sapi_register_variables(zval *track_vars_array) in php_apache_sapi_register_variables() argument
278 php_register_variable_safe(key, val, new_val_len, track_vars_array); in php_apache_sapi_register_variables()
283 php_register_variable_safe("PHP_SELF", ctx->r->uri, new_val_len, track_vars_array); in php_apache_sapi_register_variables()
/PHP-8.1/sapi/phpdbg/
H A Dphpdbg.c810 static void php_sapi_phpdbg_register_vars(zval *track_vars_array) /* {{{ */ in php_sapi_phpdbg_register_vars() argument
817 php_import_environment_variables(track_vars_array); in php_sapi_phpdbg_register_vars()
822 php_register_variable("PHP_SELF", PHPDBG_G(exec), track_vars_array); in php_sapi_phpdbg_register_vars()
825 php_register_variable("SCRIPT_NAME", PHPDBG_G(exec), track_vars_array); in php_sapi_phpdbg_register_vars()
829 php_register_variable("SCRIPT_FILENAME", PHPDBG_G(exec), track_vars_array); in php_sapi_phpdbg_register_vars()
832 php_register_variable("PATH_TRANSLATED", PHPDBG_G(exec), track_vars_array); in php_sapi_phpdbg_register_vars()
839 php_register_variable("DOCUMENT_ROOT", docroot, track_vars_array); in php_sapi_phpdbg_register_vars()
/PHP-8.1/sapi/fpm/fpm/
H A Dfpm_main.c545 static void sapi_cgi_register_variables(zval *track_vars_array) /* {{{ */ in sapi_cgi_register_variables() argument
553 php_import_environment_variables(track_vars_array); in sapi_cgi_register_variables()
574 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array); in sapi_cgi_register_variables()
581 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array); in sapi_cgi_register_variables()
/PHP-8.1/sapi/cgi/
H A Dcgi_main.c687 static void sapi_cgi_register_variables(zval *track_vars_array) in sapi_cgi_register_variables() argument
695 php_import_environment_variables(track_vars_array); in sapi_cgi_register_variables()
739 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array); in sapi_cgi_register_variables()
748 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array); in sapi_cgi_register_variables()
/PHP-8.1/ext/mbstring/
H A Dmbstring.c1506 zval *track_vars_array = NULL; in PHP_FUNCTION() local
1514 Z_PARAM_ZVAL(track_vars_array) in PHP_FUNCTION()
1517 track_vars_array = zend_try_array_init(track_vars_array); in PHP_FUNCTION()
1518 if (!track_vars_array) { in PHP_FUNCTION()
1533 detected = _php_mb_encoding_handler_ex(&info, track_vars_array, encstr); in PHP_FUNCTION()
/PHP-8.1/ext/opcache/
H A DZendAccelerator.c4648 …void (*orig_register_server_variables)(zval *track_vars_array) = sapi_module.register_server_varia…

Completed in 114 milliseconds