Lines Matching refs:pe

162 	putenv_entry *pe = Z_PTR_P(zv);  in php_putenv_destructor()  local
164 if (pe->previous_value) { in php_putenv_destructor()
170 SetEnvironmentVariable(ZSTR_VAL(pe->key), "bugbug"); in php_putenv_destructor()
172 putenv(pe->previous_value); in php_putenv_destructor()
174 efree(pe->previous_value); in php_putenv_destructor()
178 unsetenv(ZSTR_VAL(pe->key)); in php_putenv_destructor()
180 SetEnvironmentVariable(ZSTR_VAL(pe->key), NULL); in php_putenv_destructor()
182 _putenv_s(ZSTR_VAL(pe->key), ""); in php_putenv_destructor()
188 if (!strncmp(*env, ZSTR_VAL(pe->key), ZSTR_LEN(pe->key)) in php_putenv_destructor()
189 && (*env)[ZSTR_LEN(pe->key)] == '=') { /* found it */ in php_putenv_destructor()
199 if (zend_string_equals_literal_ci(pe->key, "TZ")) { in php_putenv_destructor()
204 free(pe->putenv_string); in php_putenv_destructor()
205 zend_string_release(pe->key); in php_putenv_destructor()
206 efree(pe); in php_putenv_destructor()
780 putenv_entry pe; local
795 pe.putenv_string = zend_strndup(setting, setting_len);
797 pe.key = zend_string_init(setting, p - setting, 0);
802 pe.key = zend_string_init(setting, setting_len, 0);
806 zend_hash_del(&BG(putenv_ht), pe.key);
809 pe.previous_value = NULL;
811 if (!strncmp(*env, ZSTR_VAL(pe.key), ZSTR_LEN(pe.key))
812 && (*env)[ZSTR_LEN(pe.key)] == '=') { /* found it */
815 pe.previous_value = estrdup(*env);
817 pe.previous_value = *env;
825 unsetenv(pe.putenv_string);
827 if (!p || putenv(pe.putenv_string) == 0) { /* success */
830 if (putenv(pe.putenv_string) == 0) { /* success */
834 keyw = php_win32_cp_any_to_w(ZSTR_VAL(pe.key));
841 free(pe.putenv_string);
842 zend_string_release(pe.key);
862 zend_hash_add_mem(&BG(putenv_ht), pe.key, &pe, sizeof(putenv_entry));
864 if (zend_string_equals_literal_ci(pe.key, "TZ")) {
875 free(pe.putenv_string);
876 zend_string_release(pe.key);