Home
last modified time | relevance | path

Searched refs:newfile (Results 1 – 4 of 4) sorted by relevance

/PHP-7.4/ext/phar/
H A Dphar.c2560 if (!newfile) { in phar_flush()
2613 php_stream_close(newfile); in phar_flush()
2630 php_stream_close(newfile); in phar_flush()
2659 php_stream_close(newfile); in phar_flush()
2897 php_stream_close(newfile); in phar_flush()
2918 php_stream_close(newfile); in phar_flush()
3158 php_stream_rewind(newfile); in phar_flush()
3162 phar->fp = newfile; in phar_flush()
3166 phar->fp = newfile; in phar_flush()
3195 phar->fp = newfile; in phar_flush()
[all …]
H A Dtar.c1161 if (!newfile) { in phar_tar_flush()
1172 pass.new = newfile; in phar_tar_flush()
1221 php_stream_close(newfile); in phar_tar_flush()
1240 php_stream_close(newfile); in phar_tar_flush()
1272 php_stream_close(newfile); in phar_tar_flush()
1302 php_stream_close(newfile); in phar_tar_flush()
1318 php_stream_rewind(newfile); in phar_tar_flush()
1322 phar->fp = newfile; in phar_tar_flush()
1326 phar->fp = newfile; in phar_tar_flush()
1363 phar->fp = newfile; in phar_tar_flush()
[all …]
H A Dzip.c1152 php_stream *newfile; in phar_zip_applysignature() local
1155 newfile = php_stream_fopen_tmpfile(); in phar_zip_applysignature()
1156 if (newfile == NULL) { in phar_zip_applysignature()
1163 php_stream_copy_to_stream_ex(pass->filefp, newfile, tell, NULL); in phar_zip_applysignature()
1166 php_stream_copy_to_stream_ex(pass->centralfp, newfile, tell, NULL); in phar_zip_applysignature()
1168 php_stream_write(newfile, ZSTR_VAL(metadata->s), ZSTR_LEN(metadata->s)); in phar_zip_applysignature()
1171 if (FAILURE == phar_create_signature(phar, newfile, &signature, &signature_length, pass->error)) { in phar_zip_applysignature()
1178 php_stream_close(newfile); in phar_zip_applysignature()
1201 php_stream_close(newfile); in phar_zip_applysignature()
1210 php_stream_close(newfile); in phar_zip_applysignature()
H A Dphar_object.c3450 char *oldfile, *newfile, *error; in PHP_METHOD() local
3458 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "pp", &oldfile, &oldfile_len, &newfile, &newfile_len) =… in PHP_METHOD()
3463 "Cannot copy \"%s\" to \"%s\", phar is read-only", oldfile, newfile); in PHP_METHOD()
3470 …ot be copied to file \"%s\", cannot copy Phar meta-file in %s", oldfile, newfile, phar_obj->archiv… in PHP_METHOD()
3474 if (newfile_len >= sizeof(".phar")-1 && !memcmp(newfile, ".phar", sizeof(".phar")-1)) { in PHP_METHOD()
3483 …"file \"%s\" cannot be copied to file \"%s\", file does not exist in %s", oldfile, newfile, phar_o… in PHP_METHOD()
3487 if (zend_hash_str_exists(&phar_obj->archive->manifest, newfile, (uint32_t) newfile_len)) { in PHP_METHOD()
3496 if (phar_path_check(&newfile, &tmp_len, &pcr_error) > pcr_is_ok) { in PHP_METHOD()
3519 newentry.filename = estrndup(newfile, newfile_len); in PHP_METHOD()
3533 …zend_hash_str_add_mem(&oldentry->phar->manifest, newfile, newfile_len, &newentry, sizeof(phar_entr… in PHP_METHOD()
[all …]

Completed in 30 milliseconds