Lines Matching refs:newfile

2565 	php_stream *file, *oldfile, *newfile, *stubfile;  in phar_flush()  local
2610 newfile = php_stream_fopen_tmpfile(); in phar_flush()
2611 if (!newfile) { in phar_flush()
2629 php_stream_close(newfile); in phar_flush()
2646 php_stream_close(newfile); in phar_flush()
2664 php_stream_close(newfile); in phar_flush()
2676 if ((size_t)len != php_stream_write(newfile, user_stub, len) in phar_flush()
2677 || 5 != php_stream_write(newfile, " ?>\r\n", 5)) { in phar_flush()
2681 php_stream_close(newfile); in phar_flush()
2698 php_stream_copy_to_stream_ex(oldfile, newfile, phar->halt_offset, &written); in phar_flush()
2704 written = php_stream_write(newfile, ZSTR_VAL(newstub), phar->halt_offset); in phar_flush()
2710 php_stream_close(newfile); in phar_flush()
2727 manifest_ftell = php_stream_tell(newfile); in phar_flush()
2813 php_stream_close(newfile); in phar_flush()
2836 php_stream_close(newfile); in phar_flush()
2863 php_stream_close(newfile); in phar_flush()
2874 php_stream_close(newfile); in phar_flush()
2885 php_stream_close(newfile); in phar_flush()
2938 if (sizeof(manifest) != php_stream_write(newfile, manifest, sizeof(manifest)) in phar_flush()
2939 || (size_t)phar->alias_len != php_stream_write(newfile, phar->alias, phar->alias_len)) { in phar_flush()
2945 php_stream_close(newfile); in phar_flush()
2958 …if (4 != php_stream_write(newfile, manifest, 4) || ((main_metadata_str.s ? ZSTR_LEN(main_metadata_… in phar_flush()
2959 …&& ZSTR_LEN(main_metadata_str.s) != php_stream_write(newfile, ZSTR_VAL(main_metadata_str.s), ZSTR_… in phar_flush()
2966 php_stream_close(newfile); in phar_flush()
2978 manifest_ftell = php_stream_tell(newfile); in phar_flush()
2995 if (4 != php_stream_write(newfile, entry_buffer, 4) in phar_flush()
2996 || entry->filename_len != php_stream_write(newfile, entry->filename, entry->filename_len) in phar_flush()
2997 || (entry->is_dir && 1 != php_stream_write(newfile, "/", 1))) { in phar_flush()
3001 php_stream_close(newfile); in phar_flush()
3030 if (sizeof(entry_buffer) != php_stream_write(newfile, entry_buffer, sizeof(entry_buffer)) in phar_flush()
3032 …ZSTR_LEN(metadata_str) != php_stream_write(newfile, ZSTR_VAL(metadata_str), ZSTR_LEN(metadata_str)… in phar_flush()
3037 php_stream_close(newfile); in phar_flush()
3048 if(1 != php_stream_write(newfile, manifest, 1)) { in phar_flush()
3053 php_stream_close(newfile); in phar_flush()
3064 offset = php_stream_tell(newfile); in phar_flush()
3079 php_stream_close(newfile); in phar_flush()
3091 php_stream_close(newfile); in phar_flush()
3101 if (php_stream_copy_to_stream_ex(file, newfile, entry->compressed_filesize, &wrote) == FAILURE) { in phar_flush()
3106 php_stream_close(newfile); in phar_flush()
3144 php_stream_rewind(newfile); in phar_flush()
3156 if (FAILURE == phar_create_signature(phar, newfile, &digest, &digest_len, error)) { in phar_flush()
3168 php_stream_close(newfile); in phar_flush()
3172 php_stream_write(newfile, digest, digest_len); in phar_flush()
3176 php_stream_write(newfile, sig_buf, 4); in phar_flush()
3182 php_stream_write(newfile, sig_buf, 4); in phar_flush()
3183 php_stream_write(newfile, "GBMB", 4); in phar_flush()
3208 php_stream_rewind(newfile); in phar_flush()
3212 phar->fp = newfile; in phar_flush()
3216 phar->fp = newfile; in phar_flush()
3240 php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); in phar_flush()
3245 phar->fp = newfile; in phar_flush()
3249 php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); in phar_flush()
3254 phar->fp = newfile; in phar_flush()
3256 php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); in phar_flush()
3258 php_stream_close(newfile); in phar_flush()