newfile 2562 ext/phar/phar.c php_stream *file, *oldfile, *newfile, *stubfile; newfile 2606 ext/phar/phar.c newfile = php_stream_fopen_tmpfile(); newfile 2607 ext/phar/phar.c if (!newfile) { newfile 2624 ext/phar/phar.c php_stream_close(newfile); newfile 2641 ext/phar/phar.c php_stream_close(newfile); newfile 2657 ext/phar/phar.c php_stream_close(newfile); newfile 2669 ext/phar/phar.c if ((size_t)len != php_stream_write(newfile, user_stub, len) newfile 2670 ext/phar/phar.c || 5 != php_stream_write(newfile, " ?>\r\n", 5)) { newfile 2674 ext/phar/phar.c php_stream_close(newfile); newfile 2691 ext/phar/phar.c php_stream_copy_to_stream_ex(oldfile, newfile, phar->halt_offset, &written); newfile 2696 ext/phar/phar.c written = php_stream_write(newfile, newstub, phar->halt_offset); newfile 2702 ext/phar/phar.c php_stream_close(newfile); newfile 2719 ext/phar/phar.c manifest_ftell = php_stream_tell(newfile); newfile 2817 ext/phar/phar.c php_stream_close(newfile); newfile 2840 ext/phar/phar.c php_stream_close(newfile); newfile 2864 ext/phar/phar.c php_stream_close(newfile); newfile 2872 ext/phar/phar.c php_stream_close(newfile); newfile 2883 ext/phar/phar.c php_stream_close(newfile); newfile 2937 ext/phar/phar.c if (sizeof(manifest) != php_stream_write(newfile, manifest, sizeof(manifest)) newfile 2938 ext/phar/phar.c || (size_t)phar->alias_len != php_stream_write(newfile, phar->alias, phar->alias_len)) { newfile 2944 ext/phar/phar.c php_stream_close(newfile); newfile 2957 ext/phar/phar.c if (4 != php_stream_write(newfile, manifest, 4) || (main_metadata_str.len newfile 2958 ext/phar/phar.c && main_metadata_str.len != php_stream_write(newfile, main_metadata_str.c, main_metadata_str.len))) { newfile 2965 ext/phar/phar.c php_stream_close(newfile); newfile 2977 ext/phar/phar.c manifest_ftell = php_stream_tell(newfile); newfile 3000 ext/phar/phar.c if (4 != php_stream_write(newfile, entry_buffer, 4) newfile 3001 ext/phar/phar.c || entry->filename_len != php_stream_write(newfile, entry->filename, entry->filename_len) newfile 3002 ext/phar/phar.c || (entry->is_dir && 1 != php_stream_write(newfile, "/", 1))) { newfile 3006 ext/phar/phar.c php_stream_close(newfile); newfile 3034 ext/phar/phar.c if (sizeof(entry_buffer) != php_stream_write(newfile, entry_buffer, sizeof(entry_buffer)) newfile 3035 ext/phar/phar.c || entry->metadata_str.len != php_stream_write(newfile, entry->metadata_str.c, entry->metadata_str.len)) { newfile 3040 ext/phar/phar.c php_stream_close(newfile); newfile 3051 ext/phar/phar.c if(1 != php_stream_write(newfile, manifest, 1)) { newfile 3056 ext/phar/phar.c php_stream_close(newfile); newfile 3067 ext/phar/phar.c offset = php_stream_tell(newfile); newfile 3089 ext/phar/phar.c php_stream_close(newfile); newfile 3101 ext/phar/phar.c php_stream_close(newfile); newfile 3111 ext/phar/phar.c if (php_stream_copy_to_stream_ex(file, newfile, entry->compressed_filesize, &wrote) == FAILURE) { newfile 3116 ext/phar/phar.c php_stream_close(newfile); newfile 3149 ext/phar/phar.c php_stream_rewind(newfile); newfile 3163 ext/phar/phar.c php_stream_close(newfile); newfile 3173 ext/phar/phar.c if (FAILURE == phar_create_signature(phar, newfile, &digest, &digest_len, error TSRMLS_CC)) { newfile 3185 ext/phar/phar.c php_stream_close(newfile); newfile 3189 ext/phar/phar.c php_stream_write(newfile, digest, digest_len); newfile 3193 ext/phar/phar.c php_stream_write(newfile, sig_buf, 4); newfile 3199 ext/phar/phar.c php_stream_write(newfile, sig_buf, 4); newfile 3200 ext/phar/phar.c php_stream_write(newfile, "GBMB", 4); newfile 3225 ext/phar/phar.c php_stream_rewind(newfile); newfile 3229 ext/phar/phar.c phar->fp = newfile; newfile 3233 ext/phar/phar.c phar->fp = newfile; newfile 3257 ext/phar/phar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); newfile 3262 ext/phar/phar.c phar->fp = newfile; newfile 3266 ext/phar/phar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); newfile 3271 ext/phar/phar.c phar->fp = newfile; newfile 3273 ext/phar/phar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); newfile 3275 ext/phar/phar.c php_stream_close(newfile); newfile 3438 ext/phar/phar_object.c char *oldfile, *newfile, *error; newfile 3445 ext/phar/phar_object.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pp", &oldfile, &oldfile_len, &newfile, &newfile_len) == FAILURE) { newfile 3451 ext/phar/phar_object.c "Cannot copy \"%s\" to \"%s\", phar is read-only", oldfile, newfile); newfile 3458 ext/phar/phar_object.c "file \"%s\" cannot be copied to file \"%s\", cannot copy Phar meta-file in %s", oldfile, newfile, phar_obj->arc.archive->fname); newfile 3462 ext/phar/phar_object.c if (newfile_len >= sizeof(".phar")-1 && !memcmp(newfile, ".phar", sizeof(".phar")-1)) { newfile 3465 ext/phar/phar_object.c "file \"%s\" cannot be copied to file \"%s\", cannot copy to Phar meta-file in %s", oldfile, newfile, phar_obj->arc.archive->fname); newfile 3471 ext/phar/phar_object.c "file \"%s\" cannot be copied to file \"%s\", file does not exist in %s", oldfile, newfile, phar_obj->arc.archive->fname); newfile 3475 ext/phar/phar_object.c if (zend_hash_exists(&phar_obj->arc.archive->manifest, newfile, (uint) newfile_len)) { newfile 3476 ext/phar/phar_object.c if (SUCCESS == zend_hash_find(&phar_obj->arc.archive->manifest, newfile, (uint) newfile_len, (void**)&temp) || !temp->is_deleted) { newfile 3478 ext/phar/phar_object.c "file \"%s\" cannot be copied to file \"%s\", file must not already exist in phar %s", oldfile, newfile, phar_obj->arc.archive->fname); newfile 3483 ext/phar/phar_object.c if (phar_path_check(&newfile, &newfile_len, &pcr_error) > pcr_is_ok) { newfile 3485 ext/phar/phar_object.c "file \"%s\" contains invalid characters %s, cannot be copied from \"%s\" in phar %s", newfile, pcr_error, oldfile, phar_obj->arc.archive->fname); newfile 3513 ext/phar/phar_object.c newentry.filename = estrndup(newfile, newfile_len); newfile 3527 ext/phar/phar_object.c zend_hash_add(&oldentry->phar->manifest, newfile, newfile_len, (void*)&newentry, sizeof(phar_entry_info), NULL); newfile 5210 ext/phar/phar_object.c ZEND_ARG_INFO(0, newfile) newfile 949 ext/phar/tar.c php_stream *oldfile, *newfile, *stubfile; newfile 1127 ext/phar/tar.c newfile = php_stream_fopen_tmpfile(); newfile 1128 ext/phar/tar.c if (!newfile) { newfile 1139 ext/phar/tar.c pass.new = newfile; newfile 1188 ext/phar/tar.c php_stream_close(newfile); newfile 1196 ext/phar/tar.c if (FAILURE == phar_create_signature(phar, newfile, &signature, &signature_length, error TSRMLS_CC)) { newfile 1207 ext/phar/tar.c php_stream_close(newfile); newfile 1239 ext/phar/tar.c php_stream_close(newfile); newfile 1253 ext/phar/tar.c php_stream_close(newfile); newfile 1260 ext/phar/tar.c php_stream_write(newfile, buf, 1024); newfile 1269 ext/phar/tar.c php_stream_close(newfile); newfile 1285 ext/phar/tar.c php_stream_rewind(newfile); newfile 1289 ext/phar/tar.c phar->fp = newfile; newfile 1293 ext/phar/tar.c phar->fp = newfile; newfile 1316 ext/phar/tar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); newfile 1317 ext/phar/tar.c php_stream_close(newfile); newfile 1325 ext/phar/tar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); newfile 1330 ext/phar/tar.c phar->fp = newfile; newfile 1336 ext/phar/tar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); newfile 1341 ext/phar/tar.c phar->fp = newfile; newfile 1343 ext/phar/tar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); newfile 1345 ext/phar/tar.c php_stream_close(newfile); newfile 1087 ext/phar/zip.c php_stream *newfile; newfile 1090 ext/phar/zip.c newfile = php_stream_fopen_tmpfile(); newfile 1091 ext/phar/zip.c if (newfile == NULL) { newfile 1098 ext/phar/zip.c php_stream_copy_to_stream_ex(pass->filefp, newfile, tell, NULL); newfile 1101 ext/phar/zip.c php_stream_copy_to_stream_ex(pass->centralfp, newfile, tell, NULL); newfile 1103 ext/phar/zip.c php_stream_write(newfile, metadata->c, metadata->len); newfile 1106 ext/phar/zip.c if (FAILURE == phar_create_signature(phar, newfile, &signature, &signature_length, pass->error TSRMLS_CC)) { newfile 1113 ext/phar/zip.c php_stream_close(newfile); newfile 1136 ext/phar/zip.c php_stream_close(newfile); newfile 1145 ext/phar/zip.c php_stream_close(newfile); newfile 1149 ext/phar/zip.c php_stream_close(newfile);