Searched refs:newfile (Results 1 – 5 of 5) sorted by relevance
/PHP-5.4/ext/pcre/ |
H A D | upgrade-pcre.php | 53 $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-5.4/ext/phar/ |
H A D | phar.c | 2625 if (!newfile) { 2675 php_stream_close(newfile); 2692 php_stream_close(newfile); 2720 php_stream_close(newfile); 2962 php_stream_close(newfile); 2983 php_stream_close(newfile); 3243 php_stream_rewind(newfile); 3247 phar->fp = newfile; 3251 phar->fp = newfile; 3280 phar->fp = newfile; [all …]
|
H A D | tar.c | 1103 if (!newfile) { in phar_tar_flush() 1114 pass.new = newfile; in phar_tar_flush() 1163 php_stream_close(newfile); in phar_tar_flush() 1182 php_stream_close(newfile); in phar_tar_flush() 1214 php_stream_close(newfile); in phar_tar_flush() 1244 php_stream_close(newfile); in phar_tar_flush() 1260 php_stream_rewind(newfile); in phar_tar_flush() 1264 phar->fp = newfile; in phar_tar_flush() 1268 phar->fp = newfile; in phar_tar_flush() 1305 phar->fp = newfile; in phar_tar_flush() [all …]
|
H A D | zip.c | 1095 php_stream *newfile; in phar_zip_applysignature() local 1098 newfile = php_stream_fopen_tmpfile(); in phar_zip_applysignature() 1099 if (newfile == NULL) { in phar_zip_applysignature() 1106 phar_stream_copy_to_stream(pass->filefp, newfile, tell, NULL); in phar_zip_applysignature() 1109 phar_stream_copy_to_stream(pass->centralfp, newfile, tell, NULL); in phar_zip_applysignature() 1111 php_stream_write(newfile, metadata->c, metadata->len); in phar_zip_applysignature() 1114 …if (FAILURE == phar_create_signature(phar, newfile, &signature, &signature_length, pass->error TSR… in phar_zip_applysignature() 1121 php_stream_close(newfile); in phar_zip_applysignature() 1144 php_stream_close(newfile); in phar_zip_applysignature() 1153 php_stream_close(newfile); in phar_zip_applysignature() [all …]
|
H A D | phar_object.c | 3515 char *oldfile, *newfile, *error; local 3522 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &oldfile, &oldfile_len, &newfile, &newf… 3528 "Cannot copy \"%s\" to \"%s\", phar is read-only", oldfile, newfile); 3535 …ot be copied to file \"%s\", cannot copy Phar meta-file in %s", oldfile, newfile, phar_obj->arc.ar… 3539 if (newfile_len >= sizeof(".phar")-1 && !memcmp(newfile, ".phar", sizeof(".phar")-1)) { 3548 …"file \"%s\" cannot be copied to file \"%s\", file does not exist in %s", oldfile, newfile, phar_o… 3552 if (zend_hash_exists(&phar_obj->arc.archive->manifest, newfile, (uint) newfile_len)) { 3560 if (phar_path_check(&newfile, &newfile_len, &pcr_error) > pcr_is_ok) { 3594 newentry.filename = estrndup(newfile, newfile_len); 3608 …zend_hash_add(&oldentry->phar->manifest, newfile, newfile_len, (void*)&newentry, sizeof(phar_entry… [all …]
|
Completed in 32 milliseconds