Lines Matching refs:new_state
102 cwd_state new_state; in php_do_open_temporary_file() local
127 new_state.cwd = strdup(cwd); in php_do_open_temporary_file()
128 new_state.cwd_length = strlen(cwd); in php_do_open_temporary_file()
130 if (virtual_file_ex(&new_state, path, NULL, CWD_REALPATH TSRMLS_CC)) { in php_do_open_temporary_file()
131 free(new_state.cwd); in php_do_open_temporary_file()
135 if (IS_SLASH(new_state.cwd[new_state.cwd_length - 1])) { in php_do_open_temporary_file()
141 if (spprintf(&opened_path, 0, "%s%s%sXXXXXX", new_state.cwd, trailing_slash, pfx) >= MAXPATHLEN) { in php_do_open_temporary_file()
143 free(new_state.cwd); in php_do_open_temporary_file()
149 if (GetTempFileName(new_state.cwd, pfx, 0, opened_path)) { in php_do_open_temporary_file()
154 free(new_state.cwd); in php_do_open_temporary_file()
173 free(new_state.cwd); in php_do_open_temporary_file()