Home
last modified time | relevance | path

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

/PHP-7.2/ext/pcre/
H A Dupgrade-pcre.php53 $newfile = $newpcre . substr($file, $dirlen);
55 if (is_file($tmp = $newfile . '.generic') || is_file($tmp = $newfile . '.dist')) {
56 $newfile = $tmp;
60 if (!is_file($newfile)) {
61 die("$newfile is not available any more\n");
65 if (file_get_contents($newfile) !== file_get_contents($file)) {
66 copy($newfile, $file);
70 $content = file_get_contents($newfile);
/PHP-7.2/ext/phar/
H A Dphar.c2551 if (!newfile) {
2604 php_stream_close(newfile);
2621 php_stream_close(newfile);
2650 php_stream_close(newfile);
2888 php_stream_close(newfile);
2909 php_stream_close(newfile);
3170 php_stream_rewind(newfile);
3174 phar->fp = newfile;
3178 phar->fp = newfile;
3207 phar->fp = newfile;
[all …]
H A Dtar.c1155 if (!newfile) { in phar_tar_flush()
1166 pass.new = newfile; in phar_tar_flush()
1215 php_stream_close(newfile); in phar_tar_flush()
1234 php_stream_close(newfile); in phar_tar_flush()
1266 php_stream_close(newfile); in phar_tar_flush()
1296 php_stream_close(newfile); in phar_tar_flush()
1312 php_stream_rewind(newfile); in phar_tar_flush()
1316 phar->fp = newfile; in phar_tar_flush()
1320 phar->fp = newfile; in phar_tar_flush()
1357 phar->fp = newfile; in phar_tar_flush()
[all …]
H A Dzip.c1111 php_stream *newfile; in phar_zip_applysignature() local
1114 newfile = php_stream_fopen_tmpfile(); in phar_zip_applysignature()
1115 if (newfile == NULL) { in phar_zip_applysignature()
1122 php_stream_copy_to_stream_ex(pass->filefp, newfile, tell, NULL); in phar_zip_applysignature()
1125 php_stream_copy_to_stream_ex(pass->centralfp, newfile, tell, NULL); in phar_zip_applysignature()
1127 php_stream_write(newfile, ZSTR_VAL(metadata->s), ZSTR_LEN(metadata->s)); in phar_zip_applysignature()
1130 if (FAILURE == phar_create_signature(phar, newfile, &signature, &signature_length, pass->error)) { in phar_zip_applysignature()
1137 php_stream_close(newfile); in phar_zip_applysignature()
1160 php_stream_close(newfile); in phar_zip_applysignature()
1169 php_stream_close(newfile); in phar_zip_applysignature()
H A Dphar_object.c3501 char *oldfile, *newfile, *error; in PHP_METHOD() local
3509 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "pp", &oldfile, &oldfile_len, &newfile, &newfile_len) =… in PHP_METHOD()
3517 "Cannot copy \"%s\" to \"%s\", phar is read-only", oldfile, newfile); in PHP_METHOD()
3524 …ot be copied to file \"%s\", cannot copy Phar meta-file in %s", oldfile, newfile, phar_obj->archiv… in PHP_METHOD()
3528 if (newfile_len >= sizeof(".phar")-1 && !memcmp(newfile, ".phar", sizeof(".phar")-1)) { in PHP_METHOD()
3537 …"file \"%s\" cannot be copied to file \"%s\", file does not exist in %s", oldfile, newfile, phar_o… in PHP_METHOD()
3541 if (zend_hash_str_exists(&phar_obj->archive->manifest, newfile, (uint32_t) newfile_len)) { in PHP_METHOD()
3550 if (phar_path_check(&newfile, &tmp_len, &pcr_error) > pcr_is_ok) { in PHP_METHOD()
3573 newentry.filename = estrndup(newfile, newfile_len); in PHP_METHOD()
3587 …zend_hash_str_add_mem(&oldentry->phar->manifest, newfile, newfile_len, &newentry, sizeof(phar_entr… in PHP_METHOD()
[all …]

Completed in 37 milliseconds