newfile          2509 ext/phar/phar.c 	php_stream *file, *oldfile, *newfile, *stubfile;
newfile          2553 ext/phar/phar.c 	newfile = php_stream_fopen_tmpfile();
newfile          2554 ext/phar/phar.c 	if (!newfile) {
newfile          2572 ext/phar/phar.c 				php_stream_close(newfile);
newfile          2589 ext/phar/phar.c 				php_stream_close(newfile);
newfile          2607 ext/phar/phar.c 			php_stream_close(newfile);
newfile          2619 ext/phar/phar.c 		if ((size_t)len != php_stream_write(newfile, user_stub, len)
newfile          2620 ext/phar/phar.c 		||			  5 != php_stream_write(newfile, " ?>\r\n", 5)) {
newfile          2624 ext/phar/phar.c 			php_stream_close(newfile);
newfile          2641 ext/phar/phar.c 			php_stream_copy_to_stream_ex(oldfile, newfile, phar->halt_offset, &written);
newfile          2647 ext/phar/phar.c 			written = php_stream_write(newfile, ZSTR_VAL(newstub), phar->halt_offset);
newfile          2653 ext/phar/phar.c 			php_stream_close(newfile);
newfile          2670 ext/phar/phar.c 	manifest_ftell = php_stream_tell(newfile);
newfile          2764 ext/phar/phar.c 			php_stream_close(newfile);
newfile          2787 ext/phar/phar.c 			php_stream_close(newfile);
newfile          2811 ext/phar/phar.c 			php_stream_close(newfile);
newfile          2819 ext/phar/phar.c 			php_stream_close(newfile);
newfile          2830 ext/phar/phar.c 			php_stream_close(newfile);
newfile          2884 ext/phar/phar.c 	if (sizeof(manifest) != php_stream_write(newfile, manifest, sizeof(manifest))
newfile          2885 ext/phar/phar.c 	|| (size_t)phar->alias_len != php_stream_write(newfile, phar->alias, phar->alias_len)) {
newfile          2891 ext/phar/phar.c 		php_stream_close(newfile);
newfile          2904 ext/phar/phar.c 	if (4 != php_stream_write(newfile, manifest, 4) || ((main_metadata_str.s ? ZSTR_LEN(main_metadata_str.s) : 0)
newfile          2905 ext/phar/phar.c 	&& ZSTR_LEN(main_metadata_str.s) != php_stream_write(newfile, ZSTR_VAL(main_metadata_str.s), ZSTR_LEN(main_metadata_str.s)))) {
newfile          2912 ext/phar/phar.c 		php_stream_close(newfile);
newfile          2924 ext/phar/phar.c 	manifest_ftell = php_stream_tell(newfile);
newfile          2947 ext/phar/phar.c 		if (4 != php_stream_write(newfile, entry_buffer, 4)
newfile          2948 ext/phar/phar.c 		|| entry->filename_len != php_stream_write(newfile, entry->filename, entry->filename_len)
newfile          2949 ext/phar/phar.c 		|| (entry->is_dir && 1 != php_stream_write(newfile, "/", 1))) {
newfile          2953 ext/phar/phar.c 			php_stream_close(newfile);
newfile          2981 ext/phar/phar.c 		if (sizeof(entry_buffer) != php_stream_write(newfile, entry_buffer, sizeof(entry_buffer))
newfile          2983 ext/phar/phar.c 		    ZSTR_LEN(entry->metadata_str.s) != php_stream_write(newfile, ZSTR_VAL(entry->metadata_str.s), ZSTR_LEN(entry->metadata_str.s)))) {
newfile          2988 ext/phar/phar.c 			php_stream_close(newfile);
newfile          2999 ext/phar/phar.c 		if(1 != php_stream_write(newfile, manifest, 1)) {
newfile          3004 ext/phar/phar.c 			php_stream_close(newfile);
newfile          3015 ext/phar/phar.c 	offset = php_stream_tell(newfile);
newfile          3037 ext/phar/phar.c 				php_stream_close(newfile);
newfile          3049 ext/phar/phar.c 			php_stream_close(newfile);
newfile          3059 ext/phar/phar.c 		if (php_stream_copy_to_stream_ex(file, newfile, entry->compressed_filesize, &wrote) == FAILURE) {
newfile          3064 ext/phar/phar.c 			php_stream_close(newfile);
newfile          3097 ext/phar/phar.c 		php_stream_rewind(newfile);
newfile          3111 ext/phar/phar.c 				php_stream_close(newfile);
newfile          3121 ext/phar/phar.c 				if (FAILURE == phar_create_signature(phar, newfile, &digest, &digest_len, error)) {
newfile          3133 ext/phar/phar.c 					php_stream_close(newfile);
newfile          3137 ext/phar/phar.c 				php_stream_write(newfile, digest, digest_len);
newfile          3141 ext/phar/phar.c 					php_stream_write(newfile, sig_buf, 4);
newfile          3147 ext/phar/phar.c 		php_stream_write(newfile, sig_buf, 4);
newfile          3148 ext/phar/phar.c 		php_stream_write(newfile, "GBMB", 4);
newfile          3173 ext/phar/phar.c 	php_stream_rewind(newfile);
newfile          3177 ext/phar/phar.c 		phar->fp = newfile;
newfile          3181 ext/phar/phar.c 			phar->fp = newfile;
newfile          3205 ext/phar/phar.c 			php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL);
newfile          3210 ext/phar/phar.c 			phar->fp = newfile;
newfile          3214 ext/phar/phar.c 			php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL);
newfile          3219 ext/phar/phar.c 			phar->fp = newfile;
newfile          3221 ext/phar/phar.c 			php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL);
newfile          3223 ext/phar/phar.c 			php_stream_close(newfile);
newfile          3395 ext/phar/phar_object.c 	char *oldfile, *newfile, *error;
newfile          3403 ext/phar/phar_object.c 	if (zend_parse_parameters(ZEND_NUM_ARGS(), "pp", &oldfile, &oldfile_len, &newfile, &newfile_len) == FAILURE) {
newfile          3409 ext/phar/phar_object.c 			"Cannot copy \"%s\" to \"%s\", phar is read-only", oldfile, newfile);
newfile          3416 ext/phar/phar_object.c 			"file \"%s\" cannot be copied to file \"%s\", cannot copy Phar meta-file in %s", oldfile, newfile, phar_obj->archive->fname);
newfile          3420 ext/phar/phar_object.c 	if (newfile_len >= sizeof(".phar")-1 && !memcmp(newfile, ".phar", sizeof(".phar")-1)) {
newfile          3423 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->archive->fname);
newfile          3429 ext/phar/phar_object.c 			"file \"%s\" cannot be copied to file \"%s\", file does not exist in %s", oldfile, newfile, phar_obj->archive->fname);
newfile          3433 ext/phar/phar_object.c 	if (zend_hash_str_exists(&phar_obj->archive->manifest, newfile, (uint) newfile_len)) {
newfile          3434 ext/phar/phar_object.c 		if (NULL != (temp = zend_hash_str_find_ptr(&phar_obj->archive->manifest, newfile, (uint) newfile_len)) || !temp->is_deleted) {
newfile          3436 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->archive->fname);
newfile          3442 ext/phar/phar_object.c 	if (phar_path_check(&newfile, &tmp_len, &pcr_error) > pcr_is_ok) {
newfile          3444 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->archive->fname);
newfile          3465 ext/phar/phar_object.c 	newentry.filename = estrndup(newfile, newfile_len);
newfile          3479 ext/phar/phar_object.c 	zend_hash_str_add_mem(&oldentry->phar->manifest, newfile, newfile_len, &newentry, sizeof(phar_entry_info));
newfile          5153 ext/phar/phar_object.c 	ZEND_ARG_INFO(0, newfile)
newfile           948 ext/phar/tar.c 	php_stream *oldfile, *newfile, *stubfile;
newfile          1140 ext/phar/tar.c 	newfile = php_stream_fopen_tmpfile();
newfile          1141 ext/phar/tar.c 	if (!newfile) {
newfile          1152 ext/phar/tar.c 	pass.new = newfile;
newfile          1201 ext/phar/tar.c 		php_stream_close(newfile);
newfile          1209 ext/phar/tar.c 		if (FAILURE == phar_create_signature(phar, newfile, &signature, &signature_length, error)) {
newfile          1220 ext/phar/tar.c 			php_stream_close(newfile);
newfile          1252 ext/phar/tar.c 			php_stream_close(newfile);
newfile          1266 ext/phar/tar.c 			php_stream_close(newfile);
newfile          1273 ext/phar/tar.c 	php_stream_write(newfile, buf, 1024);
newfile          1282 ext/phar/tar.c 		php_stream_close(newfile);
newfile          1298 ext/phar/tar.c 	php_stream_rewind(newfile);
newfile          1302 ext/phar/tar.c 		phar->fp = newfile;
newfile          1306 ext/phar/tar.c 			phar->fp = newfile;
newfile          1329 ext/phar/tar.c 				php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL);
newfile          1330 ext/phar/tar.c 				php_stream_close(newfile);
newfile          1338 ext/phar/tar.c 			php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL);
newfile          1343 ext/phar/tar.c 			phar->fp = newfile;
newfile          1349 ext/phar/tar.c 			php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL);
newfile          1354 ext/phar/tar.c 			phar->fp = newfile;
newfile          1356 ext/phar/tar.c 			php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL);
newfile          1358 ext/phar/tar.c 			php_stream_close(newfile);
newfile          1112 ext/phar/zip.c 		php_stream *newfile;
newfile          1115 ext/phar/zip.c 		newfile = php_stream_fopen_tmpfile();
newfile          1116 ext/phar/zip.c 		if (newfile == NULL) {
newfile          1123 ext/phar/zip.c 		php_stream_copy_to_stream_ex(pass->filefp, newfile, tell, NULL);
newfile          1126 ext/phar/zip.c 		php_stream_copy_to_stream_ex(pass->centralfp, newfile, tell, NULL);
newfile          1128 ext/phar/zip.c 			php_stream_write(newfile, ZSTR_VAL(metadata->s), ZSTR_LEN(metadata->s));
newfile          1131 ext/phar/zip.c 		if (FAILURE == phar_create_signature(phar, newfile, &signature, &signature_length, pass->error)) {
newfile          1138 ext/phar/zip.c 			php_stream_close(newfile);
newfile          1161 ext/phar/zip.c 			php_stream_close(newfile);
newfile          1170 ext/phar/zip.c 		php_stream_close(newfile);
newfile          1174 ext/phar/zip.c 			php_stream_close(newfile);