Lines Matching refs:pe

3473 	putenv_entry *pe = Z_PTR_P(zv);  in php_putenv_destructor()  local
3475 if (pe->previous_value) { in php_putenv_destructor()
3481 SetEnvironmentVariable(pe->key, "bugbug"); in php_putenv_destructor()
3483 putenv(pe->previous_value); in php_putenv_destructor()
3485 efree(pe->previous_value); in php_putenv_destructor()
3489 unsetenv(pe->key); in php_putenv_destructor()
3491 SetEnvironmentVariable(pe->key, NULL); in php_putenv_destructor()
3493 _putenv_s(pe->key, ""); in php_putenv_destructor()
3499 if (!strncmp(*env, pe->key, pe->key_len) && (*env)[pe->key_len] == '=') { /* found it */ in php_putenv_destructor()
3509 if (!strncmp(pe->key, "TZ", pe->key_len)) { in php_putenv_destructor()
3514 efree(pe->putenv_string); in php_putenv_destructor()
3515 efree(pe->key); in php_putenv_destructor()
3516 efree(pe); in php_putenv_destructor()
4171 putenv_entry pe; local
4187 pe.putenv_string = estrndup(setting, setting_len);
4188 pe.key = estrndup(setting, setting_len);
4189 if ((p = strchr(pe.key, '='))) { /* nullify the '=' if there is one */
4196 pe.key_len = strlen(pe.key);
4199 if (pe.key_len < setting_len - 1) {
4208 zend_hash_str_del(&BG(putenv_ht), pe.key, pe.key_len);
4211 pe.previous_value = NULL;
4213 if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') { /* found it */
4216 pe.previous_value = estrdup(*env);
4218 pe.previous_value = *env;
4226 unsetenv(pe.putenv_string);
4228 if (!p || putenv(pe.putenv_string) == 0) { /* success */
4231 if (putenv(pe.putenv_string) == 0) { /* success */
4235 keyw = php_win32_cp_any_to_w(pe.key);
4241 efree(pe.putenv_string);
4242 efree(pe.key);
4262 zend_hash_str_add_mem(&BG(putenv_ht), pe.key, pe.key_len, &pe, sizeof(putenv_entry));
4264 if (!strncmp(pe.key, "TZ", pe.key_len)) {
4274 efree(pe.putenv_string);
4275 efree(pe.key);