Lines Matching refs:pe

147 	putenv_entry *pe = Z_PTR_P(zv);  in php_putenv_destructor()  local
149 if (pe->previous_value) { in php_putenv_destructor()
155 SetEnvironmentVariable(pe->key, "bugbug"); in php_putenv_destructor()
157 putenv(pe->previous_value); in php_putenv_destructor()
159 efree(pe->previous_value); in php_putenv_destructor()
163 unsetenv(pe->key); in php_putenv_destructor()
165 SetEnvironmentVariable(pe->key, NULL); in php_putenv_destructor()
167 _putenv_s(pe->key, ""); in php_putenv_destructor()
173 if (!strncmp(*env, pe->key, pe->key_len) && (*env)[pe->key_len] == '=') { /* found it */ in php_putenv_destructor()
183 if (!strncmp(pe->key, "TZ", pe->key_len)) { in php_putenv_destructor()
188 efree(pe->putenv_string); in php_putenv_destructor()
189 efree(pe->key); in php_putenv_destructor()
190 efree(pe); in php_putenv_destructor()
835 putenv_entry pe; local
851 pe.putenv_string = estrndup(setting, setting_len);
852 pe.key = estrndup(setting, setting_len);
853 if ((p = strchr(pe.key, '='))) { /* nullify the '=' if there is one */
860 pe.key_len = strlen(pe.key);
863 if (pe.key_len < setting_len - 1) {
873 zend_hash_str_del(&BG(putenv_ht), pe.key, pe.key_len);
876 pe.previous_value = NULL;
878 if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') { /* found it */
881 pe.previous_value = estrdup(*env);
883 pe.previous_value = *env;
891 unsetenv(pe.putenv_string);
893 if (!p || putenv(pe.putenv_string) == 0) { /* success */
896 if (putenv(pe.putenv_string) == 0) { /* success */
900 keyw = php_win32_cp_any_to_w(pe.key);
907 efree(pe.putenv_string);
908 efree(pe.key);
928 zend_hash_str_add_mem(&BG(putenv_ht), pe.key, pe.key_len, &pe, sizeof(putenv_entry));
930 if (!strncmp(pe.key, "TZ", pe.key_len)) {
941 efree(pe.putenv_string);
942 efree(pe.key);