Lines Matching refs:pe

3470 	putenv_entry *pe = Z_PTR_P(zv);  in php_putenv_destructor()  local
3472 if (pe->previous_value) { in php_putenv_destructor()
3478 SetEnvironmentVariable(pe->key, "bugbug"); in php_putenv_destructor()
3480 putenv(pe->previous_value); in php_putenv_destructor()
3482 efree(pe->previous_value); in php_putenv_destructor()
3486 unsetenv(pe->key); in php_putenv_destructor()
3488 SetEnvironmentVariable(pe->key, NULL); in php_putenv_destructor()
3490 _putenv_s(pe->key, ""); in php_putenv_destructor()
3496 if (!strncmp(*env, pe->key, pe->key_len) && (*env)[pe->key_len] == '=') { /* found it */ in php_putenv_destructor()
3506 if (!strncmp(pe->key, "TZ", pe->key_len)) { in php_putenv_destructor()
3511 efree(pe->putenv_string); in php_putenv_destructor()
3512 efree(pe->key); in php_putenv_destructor()
3513 efree(pe); in php_putenv_destructor()
4166 putenv_entry pe; local
4182 pe.putenv_string = estrndup(setting, setting_len);
4183 pe.key = estrndup(setting, setting_len);
4184 if ((p = strchr(pe.key, '='))) { /* nullify the '=' if there is one */
4191 pe.key_len = strlen(pe.key);
4194 if (pe.key_len < setting_len - 1) {
4204 zend_hash_str_del(&BG(putenv_ht), pe.key, pe.key_len);
4207 pe.previous_value = NULL;
4209 if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') { /* found it */
4212 pe.previous_value = estrdup(*env);
4214 pe.previous_value = *env;
4222 unsetenv(pe.putenv_string);
4224 if (!p || putenv(pe.putenv_string) == 0) { /* success */
4227 if (putenv(pe.putenv_string) == 0) { /* success */
4231 keyw = php_win32_cp_any_to_w(pe.key);
4238 efree(pe.putenv_string);
4239 efree(pe.key);
4259 zend_hash_str_add_mem(&BG(putenv_ht), pe.key, pe.key_len, &pe, sizeof(putenv_entry));
4261 if (!strncmp(pe.key, "TZ", pe.key_len)) {
4272 efree(pe.putenv_string);
4273 efree(pe.key);