Searched refs:newfile (Results 1 – 5 of 5) sorted by last modified time
/PHP-5.5/ext/phar/ |
H A D | zip.c | 1087 php_stream *newfile; in phar_zip_applysignature() local 1090 newfile = php_stream_fopen_tmpfile(); in phar_zip_applysignature() 1091 if (newfile == NULL) { in phar_zip_applysignature() 1098 phar_stream_copy_to_stream(pass->filefp, newfile, tell, NULL); in phar_zip_applysignature() 1101 phar_stream_copy_to_stream(pass->centralfp, newfile, tell, NULL); in phar_zip_applysignature() 1103 php_stream_write(newfile, metadata->c, metadata->len); in phar_zip_applysignature() 1106 …if (FAILURE == phar_create_signature(phar, newfile, &signature, &signature_length, pass->error TSR… in phar_zip_applysignature() 1113 php_stream_close(newfile); in phar_zip_applysignature() 1136 php_stream_close(newfile); in phar_zip_applysignature() 1145 php_stream_close(newfile); in phar_zip_applysignature() [all …]
|
H A D | phar_object.c | 3436 char *oldfile, *newfile, *error; in PHP_METHOD() local 3443 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pp", &oldfile, &oldfile_len, &newfile, &newf… in PHP_METHOD() 3449 "Cannot copy \"%s\" to \"%s\", phar is read-only", oldfile, newfile); in PHP_METHOD() 3456 …ot be copied to file \"%s\", cannot copy Phar meta-file in %s", oldfile, newfile, phar_obj->arc.ar… in PHP_METHOD() 3460 if (newfile_len >= sizeof(".phar")-1 && !memcmp(newfile, ".phar", sizeof(".phar")-1)) { in PHP_METHOD() 3469 …"file \"%s\" cannot be copied to file \"%s\", file does not exist in %s", oldfile, newfile, phar_o… in PHP_METHOD() 3473 if (zend_hash_exists(&phar_obj->arc.archive->manifest, newfile, (uint) newfile_len)) { in PHP_METHOD() 3481 if (phar_path_check(&newfile, &newfile_len, &pcr_error) > pcr_is_ok) { in PHP_METHOD() 3511 newentry.filename = estrndup(newfile, newfile_len); in PHP_METHOD() 3525 …zend_hash_add(&oldentry->phar->manifest, newfile, newfile_len, (void*)&newentry, sizeof(phar_entry… in PHP_METHOD() [all …]
|
H A D | tar.c | 1126 if (!newfile) { in phar_tar_flush() 1137 pass.new = newfile; in phar_tar_flush() 1186 php_stream_close(newfile); in phar_tar_flush() 1205 php_stream_close(newfile); in phar_tar_flush() 1237 php_stream_close(newfile); in phar_tar_flush() 1267 php_stream_close(newfile); in phar_tar_flush() 1283 php_stream_rewind(newfile); in phar_tar_flush() 1287 phar->fp = newfile; in phar_tar_flush() 1291 phar->fp = newfile; in phar_tar_flush() 1328 phar->fp = newfile; in phar_tar_flush() [all …]
|
H A D | phar.c | 2628 if (!newfile) { 2678 php_stream_close(newfile); 2695 php_stream_close(newfile); 2723 php_stream_close(newfile); 2965 php_stream_close(newfile); 2986 php_stream_close(newfile); 3246 php_stream_rewind(newfile); 3250 phar->fp = newfile; 3254 phar->fp = newfile; 3283 phar->fp = newfile; [all …]
|
/PHP-5.5/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);
|
Completed in 63 milliseconds