Home
last modified time | relevance | path

Searched refs:new_environ (Results 1 – 2 of 2) sorted by relevance

/PHP-7.1/sapi/cli/
H A Dps_title.c135 static char** frozen_environ, **new_environ; variable
189 new_environ = (char **) malloc((i + 1) * sizeof(char *)); in save_ps_args()
191 if (!new_environ || !frozen_environ) in save_ps_args()
195 new_environ[i] = strdup(environ[i]); in save_ps_args()
196 if (!new_environ[i]) in save_ps_args()
199 new_environ[i] = NULL; in save_ps_args()
200 environ = new_environ; in save_ps_args()
201 memcpy((char *)frozen_environ, (char *)new_environ, sizeof(char *) * (i + 1)); in save_ps_args()
445 free(new_environ); in cleanup_ps_args()
/PHP-7.1/sapi/fpm/fpm/
H A Dfpm_env.c251 char **new_environ; in fpm_env_init_main() local
258 if ((new_environ = malloc((1U + env_nb) * sizeof (char *))) == NULL) { in fpm_env_init_main()
261 new_environ[env_nb] = NULL; in fpm_env_init_main()
264 new_environ[env_nb] = strdup(environ[env_nb]); in fpm_env_init_main()
266 environ = new_environ; in fpm_env_init_main()

Completed in 7 milliseconds