Home
last modified time | relevance | path

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

/PHP-7.0/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.0/ext/phar/
H A Dphar.c2567 if (!newfile) {
2620 php_stream_close(newfile);
2637 php_stream_close(newfile);
2666 php_stream_close(newfile);
2904 php_stream_close(newfile);
2925 php_stream_close(newfile);
3186 php_stream_rewind(newfile);
3190 phar->fp = newfile;
3194 phar->fp = newfile;
3223 phar->fp = newfile;
[all …]
H A Dtar.c1141 if (!newfile) { in phar_tar_flush()
1152 pass.new = newfile; in phar_tar_flush()
1201 php_stream_close(newfile); in phar_tar_flush()
1220 php_stream_close(newfile); in phar_tar_flush()
1252 php_stream_close(newfile); in phar_tar_flush()
1282 php_stream_close(newfile); in phar_tar_flush()
1298 php_stream_rewind(newfile); in phar_tar_flush()
1302 phar->fp = newfile; in phar_tar_flush()
1306 phar->fp = newfile; in phar_tar_flush()
1343 phar->fp = newfile; in phar_tar_flush()
[all …]
H A Dzip.c1112 php_stream *newfile; in phar_zip_applysignature() local
1115 newfile = php_stream_fopen_tmpfile(); in phar_zip_applysignature()
1116 if (newfile == NULL) { in phar_zip_applysignature()
1123 php_stream_copy_to_stream_ex(pass->filefp, newfile, tell, NULL); in phar_zip_applysignature()
1126 php_stream_copy_to_stream_ex(pass->centralfp, newfile, tell, NULL); in phar_zip_applysignature()
1128 php_stream_write(newfile, ZSTR_VAL(metadata->s), ZSTR_LEN(metadata->s)); in phar_zip_applysignature()
1131 if (FAILURE == phar_create_signature(phar, newfile, &signature, &signature_length, pass->error)) { in phar_zip_applysignature()
1138 php_stream_close(newfile); in phar_zip_applysignature()
1161 php_stream_close(newfile); in phar_zip_applysignature()
1170 php_stream_close(newfile); in phar_zip_applysignature()
H A Dphar_object.c3468 char *oldfile, *newfile, *error; in PHP_METHOD() local
3476 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "pp", &oldfile, &oldfile_len, &newfile, &newfile_len) =… in PHP_METHOD()
3484 "Cannot copy \"%s\" to \"%s\", phar is read-only", oldfile, newfile); in PHP_METHOD()
3491 …ot be copied to file \"%s\", cannot copy Phar meta-file in %s", oldfile, newfile, phar_obj->archiv… in PHP_METHOD()
3495 if (newfile_len >= sizeof(".phar")-1 && !memcmp(newfile, ".phar", sizeof(".phar")-1)) { in PHP_METHOD()
3504 …"file \"%s\" cannot be copied to file \"%s\", file does not exist in %s", oldfile, newfile, phar_o… in PHP_METHOD()
3508 if (zend_hash_str_exists(&phar_obj->archive->manifest, newfile, (uint) newfile_len)) { in PHP_METHOD()
3517 if (phar_path_check(&newfile, &tmp_len, &pcr_error) > pcr_is_ok) { in PHP_METHOD()
3540 newentry.filename = estrndup(newfile, newfile_len); in PHP_METHOD()
3554 …zend_hash_str_add_mem(&oldentry->phar->manifest, newfile, newfile_len, &newentry, sizeof(phar_entr… in PHP_METHOD()
[all …]

Completed in 43 milliseconds