Lines Matching refs:pe
167 putenv_entry *pe = Z_PTR_P(zv); in php_putenv_destructor() local
169 if (pe->previous_value) { in php_putenv_destructor()
175 SetEnvironmentVariable(ZSTR_VAL(pe->key), "bugbug"); in php_putenv_destructor()
177 putenv(pe->previous_value); in php_putenv_destructor()
179 efree(pe->previous_value); in php_putenv_destructor()
183 unsetenv(ZSTR_VAL(pe->key)); in php_putenv_destructor()
185 SetEnvironmentVariable(ZSTR_VAL(pe->key), NULL); in php_putenv_destructor()
187 _putenv_s(ZSTR_VAL(pe->key), ""); in php_putenv_destructor()
193 if (!strncmp(*env, ZSTR_VAL(pe->key), ZSTR_LEN(pe->key)) in php_putenv_destructor()
194 && (*env)[ZSTR_LEN(pe->key)] == '=') { /* found it */ in php_putenv_destructor()
204 if (zend_string_equals_literal_ci(pe->key, "TZ")) { in php_putenv_destructor()
209 free(pe->putenv_string); in php_putenv_destructor()
210 zend_string_release(pe->key); in php_putenv_destructor()
211 efree(pe); in php_putenv_destructor()
772 putenv_entry pe; local
787 pe.putenv_string = zend_strndup(setting, setting_len);
789 pe.key = zend_string_init(setting, p - setting, 0);
794 pe.key = zend_string_init(setting, setting_len, 0);
798 zend_hash_del(&BG(putenv_ht), pe.key);
801 pe.previous_value = NULL;
803 if (!strncmp(*env, ZSTR_VAL(pe.key), ZSTR_LEN(pe.key))
804 && (*env)[ZSTR_LEN(pe.key)] == '=') { /* found it */
807 pe.previous_value = estrdup(*env);
809 pe.previous_value = *env;
817 unsetenv(pe.putenv_string);
819 if (!p || putenv(pe.putenv_string) == 0) { /* success */
822 if (putenv(pe.putenv_string) == 0) { /* success */
826 keyw = php_win32_cp_any_to_w(ZSTR_VAL(pe.key));
833 free(pe.putenv_string);
834 zend_string_release(pe.key);
854 zend_hash_add_mem(&BG(putenv_ht), pe.key, &pe, sizeof(putenv_entry));
856 if (zend_string_equals_literal_ci(pe.key, "TZ")) {
867 free(pe.putenv_string);
868 zend_string_release(pe.key);