Lines Matching refs:p

205 	char *p = buf, *ext, *actual_alias = NULL;  in phar_parse_zipfile()  local
232 if ((p = phar_find_eocd(buf, size)) != NULL) { in phar_parse_zipfile()
233 memcpy((void *)&locator, (void *) p, sizeof(locator)); in phar_parse_zipfile()
257 metadata = p + sizeof(locator); in phar_parse_zipfile()
592 p = buf; in phar_parse_zipfile()
845 struct _phar_zip_pass *p; in phar_zip_changed_apply_int() local
849 p = (struct _phar_zip_pass*) arg; in phar_zip_changed_apply_int()
905 PHAR_SET_32(central.offset, php_stream_tell(p->filefp)); in phar_zip_changed_apply_int()
922 if (FAILURE == phar_open_entry_fp(entry, p->error, 0)) { in phar_zip_changed_apply_int()
923 …spprintf(p->error, 0, "unable to open file contents of file \"%s\" in zip-based phar \"%s\"", entr… in phar_zip_changed_apply_int()
934 …spprintf(p->error, 0, "unable to seek to start of file \"%s\" to zip-based phar \"%s\"", entry->fi… in phar_zip_changed_apply_int()
959 …spprintf(p->error, 0, "unable to gzip compress file \"%s\" to zip-based phar \"%s\"", entry->filen… in phar_zip_changed_apply_int()
961 …spprintf(p->error, 0, "unable to bzip2 compress file \"%s\" to zip-based phar \"%s\"", entry->file… in phar_zip_changed_apply_int()
972 …spprintf(p->error, 0, "unable to create temporary file for file \"%s\" while creating zip-based ph… in phar_zip_changed_apply_int()
979 …spprintf(p->error, 0, "unable to seek to start of file \"%s\" to zip-based phar \"%s\"", entry->fi… in phar_zip_changed_apply_int()
986 …spprintf(p->error, 0, "unable to copy compressed file contents of file \"%s\" while creating new p… in phar_zip_changed_apply_int()
1007 if (p->old) { in phar_zip_changed_apply_int()
1008 if (-1 == php_stream_seek(p->old, entry->offset_abs, SEEK_SET)) { in phar_zip_changed_apply_int()
1009 …spprintf(p->error, 0, "unable to seek to start of file \"%s\" while creating zip-based phar \"%s\"… in phar_zip_changed_apply_int()
1024 entry->header_offset = php_stream_tell(p->filefp); in phar_zip_changed_apply_int()
1027 if (sizeof(local) != php_stream_write(p->filefp, (char *)&local, sizeof(local))) { in phar_zip_changed_apply_int()
1028 …spprintf(p->error, 0, "unable to write local file header of file \"%s\" to zip-based phar \"%s\"",… in phar_zip_changed_apply_int()
1032 if (sizeof(central) != php_stream_write(p->centralfp, (char *)&central, sizeof(central))) { in phar_zip_changed_apply_int()
1033 …spprintf(p->error, 0, "unable to write central directory entry for file \"%s\" while creating zip-… in phar_zip_changed_apply_int()
1038 if (entry->filename_len != php_stream_write(p->filefp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply_int()
1039 …spprintf(p->error, 0, "unable to write filename to local directory entry for directory \"%s\" whil… in phar_zip_changed_apply_int()
1043 if (1 != php_stream_write(p->filefp, "/", 1)) { in phar_zip_changed_apply_int()
1044 …spprintf(p->error, 0, "unable to write filename to local directory entry for directory \"%s\" whil… in phar_zip_changed_apply_int()
1048 if (entry->filename_len != php_stream_write(p->centralfp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply_int()
1049 …spprintf(p->error, 0, "unable to write filename to central directory entry for directory \"%s\" wh… in phar_zip_changed_apply_int()
1053 if (1 != php_stream_write(p->centralfp, "/", 1)) { in phar_zip_changed_apply_int()
1054 …spprintf(p->error, 0, "unable to write filename to central directory entry for directory \"%s\" wh… in phar_zip_changed_apply_int()
1058 if (entry->filename_len != php_stream_write(p->filefp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply_int()
1059 …spprintf(p->error, 0, "unable to write filename to local directory entry for file \"%s\" while cre… in phar_zip_changed_apply_int()
1063 if (entry->filename_len != php_stream_write(p->centralfp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply_int()
1064 …spprintf(p->error, 0, "unable to write filename to central directory entry for file \"%s\" while c… in phar_zip_changed_apply_int()
1069 if (sizeof(perms) != php_stream_write(p->filefp, (char *)&perms, sizeof(perms))) { in phar_zip_changed_apply_int()
1070 …spprintf(p->error, 0, "unable to write local extra permissions file header of file \"%s\" to zip-b… in phar_zip_changed_apply_int()
1074 if (sizeof(perms) != php_stream_write(p->centralfp, (char *)&perms, sizeof(perms))) { in phar_zip_changed_apply_int()
1075 …spprintf(p->error, 0, "unable to write central extra permissions file header of file \"%s\" to zip… in phar_zip_changed_apply_int()
1081 …if (SUCCESS != php_stream_copy_to_stream_ex(entry->cfp, p->filefp, entry->compressed_filesize, NUL… in phar_zip_changed_apply_int()
1082 …spprintf(p->error, 0, "unable to write compressed contents of file \"%s\" in zip-based phar \"%s\"… in phar_zip_changed_apply_int()
1089 if (FAILURE == phar_open_entry_fp(entry, p->error, 0)) { in phar_zip_changed_apply_int()
1095 …if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(entry, 0), p->filefp, entry->uncompressed… in phar_zip_changed_apply_int()
1096 …spprintf(p->error, 0, "unable to write contents of file \"%s\" in zip-based phar \"%s\"", entry->f… in phar_zip_changed_apply_int()
1112 p->free_fp = 0; in phar_zip_changed_apply_int()
1115 p->free_ufp = 0; in phar_zip_changed_apply_int()
1121 …& entry->compressed_filesize && SUCCESS != php_stream_copy_to_stream_ex(p->old, p->filefp, entry->… in phar_zip_changed_apply_int()
1122 …spprintf(p->error, 0, "unable to copy contents of file \"%s\" while creating zip-based phar \"%s\"… in phar_zip_changed_apply_int()
1132 …if (ZSTR_LEN(entry->metadata_tracker.str) != php_stream_write(p->centralfp, ZSTR_VAL(entry->metada… in phar_zip_changed_apply_int()
1133 …spprintf(p->error, 0, "unable to write metadata as file comment for file \"%s\" while creating zip… in phar_zip_changed_apply_int()