Lines Matching refs:pe
3401 static void php_putenv_destructor(putenv_entry *pe) /* {{{ */ in php_putenv_destructor() argument
3403 if (pe->previous_value) { in php_putenv_destructor()
3409 SetEnvironmentVariable(pe->key, "bugbug"); in php_putenv_destructor()
3411 putenv(pe->previous_value); in php_putenv_destructor()
3413 efree(pe->previous_value); in php_putenv_destructor()
3417 unsetenv(pe->key); in php_putenv_destructor()
3419 SetEnvironmentVariable(pe->key, NULL); in php_putenv_destructor()
3424 if (!strncmp(*env, pe->key, pe->key_len) && (*env)[pe->key_len] == '=') { /* found it */ in php_putenv_destructor()
3434 if (!strncmp(pe->key, "TZ", pe->key_len)) { in php_putenv_destructor()
3439 efree(pe->putenv_string); in php_putenv_destructor()
3440 efree(pe->key); in php_putenv_destructor()
4026 putenv_entry pe; local
4042 pe.putenv_string = estrndup(setting, setting_len);
4043 pe.key = estrndup(setting, setting_len);
4044 if ((p = strchr(pe.key, '='))) { /* nullify the '=' if there is one */
4051 pe.key_len = strlen(pe.key);
4054 if (pe.key_len < setting_len - 1) {
4063 zend_hash_del(&BG(putenv_ht), pe.key, pe.key_len+1);
4066 pe.previous_value = NULL;
4068 if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') { /* found it */
4071 pe.previous_value = estrdup(*env);
4073 pe.previous_value = *env;
4081 unsetenv(pe.putenv_string);
4083 if (!p || putenv(pe.putenv_string) == 0) { /* success */
4086 if (putenv(pe.putenv_string) == 0) { /* success */
4088 error_code = SetEnvironmentVariable(pe.key, value);
4098 zend_hash_add(&BG(putenv_ht), pe.key, pe.key_len + 1, (void **) &pe, sizeof(putenv_entry), NULL);
4100 if (!strncmp(pe.key, "TZ", pe.key_len)) {
4106 efree(pe.putenv_string);
4107 efree(pe.key);