Lines Matching refs:new_state
1751 cwd_state new_state; local
1761 new_state.cwd = (char*)emalloc(1);
1763 new_state.cwd = (char*)malloc(1);
1764 if (!new_state.cwd) {
1769 new_state.cwd[0] = '\0';
1770 new_state.cwd_length = 0;
1777 new_state.cwd = estrndup(cwd, cwd_len);
1779 new_state.cwd = zend_strndup(cwd, cwd_len);
1780 if (!new_state.cwd) {
1785 new_state.cwd_length = cwd_len;
1788 new_state.cwd = (char*)emalloc(1);
1790 new_state.cwd = (char*)malloc(1);
1791 if (!new_state.cwd) {
1796 new_state.cwd[0] = '\0';
1797 new_state.cwd_length = 0;
1803 if (virtual_file_ex(&new_state, path, NULL, CWD_REALPATH)) {
1805 efree(new_state.cwd);
1807 free(new_state.cwd);
1813 return new_state.cwd;
1815 real_path = emalloc(new_state.cwd_length + 1);
1816 memcpy(real_path, new_state.cwd, new_state.cwd_length + 1);
1817 free(new_state.cwd);