Lines Matching refs:pe

3394 static void php_putenv_destructor(putenv_entry *pe) /* {{{ */  in php_putenv_destructor()  argument
3396 if (pe->previous_value) { in php_putenv_destructor()
3402 SetEnvironmentVariable(pe->key, "bugbug"); in php_putenv_destructor()
3404 putenv(pe->previous_value); in php_putenv_destructor()
3406 efree(pe->previous_value); in php_putenv_destructor()
3410 unsetenv(pe->key); in php_putenv_destructor()
3412 SetEnvironmentVariable(pe->key, NULL); in php_putenv_destructor()
3414 _putenv_s(pe->key, ""); in php_putenv_destructor()
3420 if (!strncmp(*env, pe->key, pe->key_len) && (*env)[pe->key_len] == '=') { /* found it */ in php_putenv_destructor()
3430 if (!strncmp(pe->key, "TZ", pe->key_len)) { in php_putenv_destructor()
3435 efree(pe->putenv_string); in php_putenv_destructor()
3436 efree(pe->key); in php_putenv_destructor()
4058 putenv_entry pe; local
4074 pe.putenv_string = estrndup(setting, setting_len);
4075 pe.key = estrndup(setting, setting_len);
4076 if ((p = strchr(pe.key, '='))) { /* nullify the '=' if there is one */
4083 pe.key_len = strlen(pe.key);
4086 if (pe.key_len < setting_len - 1) {
4095 zend_hash_del(&BG(putenv_ht), pe.key, pe.key_len+1);
4098 pe.previous_value = NULL;
4100 if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') { /* found it */
4103 pe.previous_value = estrdup(*env);
4105 pe.previous_value = *env;
4113 unsetenv(pe.putenv_string);
4115 if (!p || putenv(pe.putenv_string) == 0) { /* success */
4118 if (putenv(pe.putenv_string) == 0) { /* success */
4120 error_code = SetEnvironmentVariable(pe.key, value);
4129 && _putenv_s(pe.key, value ? value : "") == 0
4134 zend_hash_add(&BG(putenv_ht), pe.key, pe.key_len + 1, (void **) &pe, sizeof(putenv_entry), NULL);
4136 if (!strncmp(pe.key, "TZ", pe.key_len)) {
4142 efree(pe.putenv_string);
4143 efree(pe.key);