fp 486 Zend/zend_language_scanner.c if (CG(start_lineno) == 2 && file_handle->type == ZEND_HANDLE_FP && file_handle->handle.fp) { fp 487 Zend/zend_language_scanner.c if ((offset = ftell(file_handle->handle.fp)) == -1) { fp 629 Zend/zend_language_scanner.c file_handle.handle.fp = NULL; fp 117 Zend/zend_stream.c if (file_handle->handle.fp && fstat(fileno(file_handle->handle.fp), &buf) == 0) { fp 136 Zend/zend_stream.c handle->handle.fp = zend_fopen(filename, &handle->opened_path TSRMLS_CC); fp 141 Zend/zend_stream.c return (handle->handle.fp) ? SUCCESS : FAILURE; fp 195 Zend/zend_stream.c file_handle->handle.fp = fdopen(file_handle->handle.fd, "rb"); fp 198 Zend/zend_stream.c if (!file_handle->handle.fp) { fp 234 Zend/zend_stream.c if (file_handle->handle.fp && fp 238 Zend/zend_stream.c *buf = mmap(0, size + ZEND_MMAP_AHEAD, PROT_READ, MAP_PRIVATE, fileno(file_handle->handle.fp), 0); fp 240 Zend/zend_stream.c long offset = ftell(file_handle->handle.fp); fp 310 Zend/zend_stream.c fclose(fh->handle.fp); fp 345 Zend/zend_stream.c return fh1->handle.fp == fh2->handle.fp; fp 68 Zend/zend_stream.h FILE *fp; fp 90 ext/bz2/bz2.c ZEND_ARG_INFO(0, fp) fp 96 ext/bz2/bz2.c ZEND_ARG_INFO(0, fp) fp 251 ext/curl/interface.c ch->handlers->read->fp = 0; fp 264 ext/curl/interface.c ch->handlers->write_header->fp = 0; fp 278 ext/curl/interface.c ch->handlers->write->fp = 0; fp 1312 ext/curl/interface.c return fwrite(data, size, nmemb, t->fp); fp 1528 ext/curl/interface.c if (t->fp) { fp 1529 ext/curl/interface.c length = fread(data, size, nmemb, t->fp); fp 1614 ext/curl/interface.c return fwrite(data, size, nmemb, t->fp); fp 2033 ext/curl/interface.c dupch->handlers->write->fp = ch->handlers->write->fp; fp 2034 ext/curl/interface.c dupch->handlers->write_header->fp = ch->handlers->write_header->fp; fp 2035 ext/curl/interface.c dupch->handlers->read->fp = ch->handlers->read->fp; fp 2376 ext/curl/interface.c FILE *fp = NULL; fp 2386 ext/curl/interface.c if (FAILURE == php_stream_cast((php_stream *) what, PHP_STREAM_AS_STDIO, (void *) &fp, REPORT_ERRORS)) { fp 2390 ext/curl/interface.c if (!fp) { fp 2403 ext/curl/interface.c ch->handlers->write->fp = NULL; fp 2410 ext/curl/interface.c ch->handlers->write->fp = fp; fp 2424 ext/curl/interface.c ch->handlers->write_header->fp = NULL; fp 2431 ext/curl/interface.c ch->handlers->write_header->fp = fp; fp 2445 ext/curl/interface.c ch->handlers->read->fp = NULL; fp 2452 ext/curl/interface.c ch->handlers->read->fp = fp; fp 2475 ext/curl/interface.c error = curl_easy_setopt(ch->cp, option, fp); fp 3010 ext/curl/interface.c if (ch->handlers->write->method == PHP_CURL_FILE && ch->handlers->write->fp) { fp 3011 ext/curl/interface.c fflush(ch->handlers->write->fp); fp 3013 ext/curl/interface.c if (ch->handlers->write_header->method == PHP_CURL_FILE && ch->handlers->write_header->fp) { fp 3014 ext/curl/interface.c fflush(ch->handlers->write_header->fp); fp 3427 ext/curl/interface.c ch->handlers->write->fp = NULL; fp 3434 ext/curl/interface.c ch->handlers->write_header->fp = NULL; fp 3441 ext/curl/interface.c ch->handlers->read->fp = NULL; fp 123 ext/curl/php_curl.h FILE *fp; fp 132 ext/curl/php_curl.h FILE *fp; fp 419 ext/dba/dba.c if (info->fp && info->fp!=info->lock.fp) { fp 421 ext/dba/dba.c php_stream_pclose(info->fp); fp 423 ext/dba/dba.c php_stream_close(info->fp); fp 426 ext/dba/dba.c if (info->lock.fp) { fp 428 ext/dba/dba.c php_stream_pclose(info->lock.fp); fp 430 ext/dba/dba.c php_stream_close(info->lock.fp); fp 843 ext/dba/dba.c info->lock.fp = php_stream_open_wrapper(lock_name, lock_file_mode, STREAM_MUST_SEEK|IGNORE_PATH|persistent_flag, &opened_path); fp 845 ext/dba/dba.c if (!info->lock.fp) { fp 859 ext/dba/dba.c if (!info->lock.fp) { fp 860 ext/dba/dba.c info->lock.fp = php_stream_open_wrapper(lock_name, lock_file_mode, STREAM_MUST_SEEK|REPORT_ERRORS|IGNORE_PATH|persistent_flag, &opened_path); fp 861 ext/dba/dba.c if (info->lock.fp) { fp 879 ext/dba/dba.c if (!info->lock.fp) { fp 885 ext/dba/dba.c if (!php_stream_supports_lock(info->lock.fp)) { fp 888 ext/dba/dba.c if (php_stream_lock(info->lock.fp, lock_mode)) { fp 895 ext/dba/dba.c if (info->lock.fp && lock_dbf) { fp 896 ext/dba/dba.c info->fp = info->lock.fp; /* use the same stream for locking and database access */ fp 898 ext/dba/dba.c info->fp = php_stream_open_wrapper(info->path, file_mode, STREAM_MUST_SEEK|REPORT_ERRORS|IGNORE_PATH|persistent_flag, NULL); fp 900 ext/dba/dba.c if (!info->fp) { fp 910 ext/dba/dba.c if (SUCCESS != php_stream_cast(info->fp, PHP_STREAM_AS_FD, (void*)&info->fd, 1)) { fp 78 ext/dba/dba_cdb.c file = info->fp; fp 90 ext/dba/dba_cdb.c file = info->fp; fp 228 ext/dba/dba_cdb.c int cdb_file_lseek(php_stream *fp, off_t offset, int whence TSRMLS_DC) { fp 229 ext/dba/dba_cdb.c php_stream_seek(fp, offset, whence); fp 230 ext/dba/dba_cdb.c return php_stream_tell(fp); fp 47 ext/dba/dba_flatfile.c ((flatfile*)info->dbf)->fp = info->fp; fp 55 ext/dba/dba_inifile.c info->dbf = inifile_alloc(info->fp, info->mode == DBA_READER, info->flags&DBA_PERSISTENT TSRMLS_CC); fp 95 ext/dba/libcdb/cdb.c void cdb_init(struct cdb *c, php_stream *fp TSRMLS_DC) fp 99 ext/dba/libcdb/cdb.c c->fp = fp; fp 106 ext/dba/libcdb/cdb.c if (php_stream_seek(c->fp, pos, SEEK_SET) == -1) { fp 113 ext/dba/libcdb/cdb.c r = php_stream_read(c->fp, buf, len); fp 31 ext/dba/libcdb/cdb.h php_stream *fp; fp 44 ext/dba/libcdb/cdb.h void cdb_init(struct cdb *, php_stream *fp TSRMLS_DC); fp 42 ext/dba/libcdb/cdb_make.c return php_stream_write(c->fp, buf, sz) == sz ? 0 : -1; fp 65 ext/dba/libcdb/cdb_make.c c->fp = f; fp 71 ext/dba/libcdb/cdb_make.c return php_stream_tell(c->fp); fp 229 ext/dba/libcdb/cdb_make.c if (php_stream_flush(c->fp) != 0) fp 231 ext/dba/libcdb/cdb_make.c php_stream_rewind(c->fp); fp 232 ext/dba/libcdb/cdb_make.c if (php_stream_tell(c->fp) != 0) fp 236 ext/dba/libcdb/cdb_make.c return php_stream_flush(c->fp); fp 54 ext/dba/libcdb/cdb_make.h php_stream * fp; fp 55 ext/dba/libflatfile/flatfile.c php_stream_seek(dba->fp, 0L, SEEK_END); fp 56 ext/dba/libflatfile/flatfile.c php_stream_printf(dba->fp TSRMLS_CC, "%zu\n", key_datum.dsize); fp 57 ext/dba/libflatfile/flatfile.c php_stream_flush(dba->fp); fp 58 ext/dba/libflatfile/flatfile.c if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) < key_datum.dsize) { fp 61 ext/dba/libflatfile/flatfile.c php_stream_printf(dba->fp TSRMLS_CC, "%zu\n", value_datum.dsize); fp 62 ext/dba/libflatfile/flatfile.c php_stream_flush(dba->fp); fp 63 ext/dba/libflatfile/flatfile.c if (php_stream_write(dba->fp, value_datum.dptr, value_datum.dsize) < value_datum.dsize) { fp 68 ext/dba/libflatfile/flatfile.c php_stream_printf(dba->fp TSRMLS_CC, "%zu\n", key_datum.dsize); fp 69 ext/dba/libflatfile/flatfile.c php_stream_flush(dba->fp); fp 70 ext/dba/libflatfile/flatfile.c if (php_stream_write(dba->fp, key_datum.dptr, key_datum.dsize) < key_datum.dsize) { fp 73 ext/dba/libflatfile/flatfile.c php_stream_printf(dba->fp TSRMLS_CC, "%zu\n", value_datum.dsize); fp 74 ext/dba/libflatfile/flatfile.c if (php_stream_write(dba->fp, value_datum.dptr, value_datum.dsize) < value_datum.dsize) { fp 79 ext/dba/libflatfile/flatfile.c php_stream_flush(dba->fp); fp 91 ext/dba/libflatfile/flatfile.c if (php_stream_gets(dba->fp, buf, sizeof(buf))) { fp 94 ext/dba/libflatfile/flatfile.c value_datum.dsize = php_stream_read(dba->fp, value_datum.dptr, value_datum.dsize); fp 114 ext/dba/libflatfile/flatfile.c php_stream_rewind(dba->fp); fp 115 ext/dba/libflatfile/flatfile.c while(!php_stream_eof(dba->fp)) { fp 117 ext/dba/libflatfile/flatfile.c if (!php_stream_gets(dba->fp, buf, 15)) { fp 125 ext/dba/libflatfile/flatfile.c pos = php_stream_tell(dba->fp); fp 128 ext/dba/libflatfile/flatfile.c num = php_stream_read(dba->fp, buf, num); fp 131 ext/dba/libflatfile/flatfile.c php_stream_seek(dba->fp, pos, SEEK_SET); fp 132 ext/dba/libflatfile/flatfile.c php_stream_putc(dba->fp, 0); fp 133 ext/dba/libflatfile/flatfile.c php_stream_flush(dba->fp); fp 134 ext/dba/libflatfile/flatfile.c php_stream_seek(dba->fp, 0L, SEEK_END); fp 140 ext/dba/libflatfile/flatfile.c if (!php_stream_gets(dba->fp, buf, 15)) { fp 149 ext/dba/libflatfile/flatfile.c num = php_stream_read(dba->fp, buf, num); fp 166 ext/dba/libflatfile/flatfile.c php_stream_rewind(dba->fp); fp 167 ext/dba/libflatfile/flatfile.c while (!php_stream_eof(dba->fp)) { fp 168 ext/dba/libflatfile/flatfile.c if (!php_stream_gets(dba->fp, buf, 15)) { fp 176 ext/dba/libflatfile/flatfile.c num = php_stream_read(dba->fp, buf, num); fp 184 ext/dba/libflatfile/flatfile.c if (!php_stream_gets(dba->fp, buf, 15)) { fp 192 ext/dba/libflatfile/flatfile.c num = php_stream_read(dba->fp, buf, num); fp 207 ext/dba/libflatfile/flatfile.c php_stream_rewind(dba->fp); fp 208 ext/dba/libflatfile/flatfile.c while(!php_stream_eof(dba->fp)) { fp 209 ext/dba/libflatfile/flatfile.c if (!php_stream_gets(dba->fp, buf, 15)) { fp 217 ext/dba/libflatfile/flatfile.c num = php_stream_read(dba->fp, buf, num); fp 220 ext/dba/libflatfile/flatfile.c dba->CurrentFlatFilePos = php_stream_tell(dba->fp); fp 225 ext/dba/libflatfile/flatfile.c if (!php_stream_gets(dba->fp, buf, 15)) { fp 233 ext/dba/libflatfile/flatfile.c num = php_stream_read(dba->fp, buf, num); fp 250 ext/dba/libflatfile/flatfile.c php_stream_seek(dba->fp, dba->CurrentFlatFilePos, SEEK_SET); fp 251 ext/dba/libflatfile/flatfile.c while(!php_stream_eof(dba->fp)) { fp 252 ext/dba/libflatfile/flatfile.c if (!php_stream_gets(dba->fp, buf, 15)) { fp 260 ext/dba/libflatfile/flatfile.c num = php_stream_read(dba->fp, buf, num); fp 262 ext/dba/libflatfile/flatfile.c if (!php_stream_gets(dba->fp, buf, 15)) { fp 270 ext/dba/libflatfile/flatfile.c num = php_stream_read(dba->fp, buf, num); fp 273 ext/dba/libflatfile/flatfile.c dba->CurrentFlatFilePos = php_stream_tell(dba->fp); fp 32 ext/dba/libflatfile/flatfile.h php_stream *fp; fp 82 ext/dba/libinifile/inifile.c inifile * inifile_alloc(php_stream *fp, int readonly, int persistent TSRMLS_DC) fp 87 ext/dba/libinifile/inifile.c if (!php_stream_truncate_supported(fp)) { fp 95 ext/dba/libinifile/inifile.c dba->fp = fp; fp 172 ext/dba/libinifile/inifile.c while ((fline = php_stream_gets(dba->fp, NULL, 0)) != NULL) { fp 184 ext/dba/libinifile/inifile.c ln->pos = php_stream_tell(dba->fp); fp 204 ext/dba/libinifile/inifile.c ln->pos = php_stream_tell(dba->fp); fp 252 ext/dba/libinifile/inifile.c php_stream_seek(dba->fp, dba->next.pos, SEEK_SET); fp 256 ext/dba/libinifile/inifile.c php_stream_rewind(dba->fp); fp 269 ext/dba/libinifile/inifile.c dba->next.pos = php_stream_tell(dba->fp); fp 281 ext/dba/libinifile/inifile.c dba->next.pos = php_stream_tell(dba->fp); fp 301 ext/dba/libinifile/inifile.c php_stream_seek(dba->fp, dba->curr.pos, SEEK_SET); fp 316 ext/dba/libinifile/inifile.c if ((res=php_stream_truncate_set_size(dba->fp, size)) != 0) { fp 320 ext/dba/libinifile/inifile.c php_stream_seek(dba->fp, size, SEEK_SET); fp 332 ext/dba/libinifile/inifile.c php_stream_flush(dba->fp); fp 333 ext/dba/libinifile/inifile.c php_stream_seek(dba->fp, 0, SEEK_SET); fp 347 ext/dba/libinifile/inifile.c *pos_grp_start = php_stream_tell(dba->fp); fp 355 ext/dba/libinifile/inifile.c *pos_grp_start = php_stream_tell(dba->fp); fp 370 ext/dba/libinifile/inifile.c *pos_grp_start = php_stream_tell(dba->fp); fp 377 ext/dba/libinifile/inifile.c *pos_grp_start = php_stream_tell(dba->fp); fp 388 ext/dba/libinifile/inifile.c php_stream *fp; fp 394 ext/dba/libinifile/inifile.c if ((fp = php_stream_temp_create(0, 64 * 1024)) == NULL) { fp 400 ext/dba/libinifile/inifile.c if ((*ini_copy = inifile_alloc(fp, 1, 0 TSRMLS_CC)) == NULL) { fp 404 ext/dba/libinifile/inifile.c php_stream_seek(dba->fp, pos_start, SEEK_SET); fp 405 ext/dba/libinifile/inifile.c if (!php_stream_copy_to_stream_ex(dba->fp, fp, pos_end - pos_start, NULL)) { fp 422 ext/dba/libinifile/inifile.c php_stream_seek(from->fp, 0, SEEK_SET); fp 423 ext/dba/libinifile/inifile.c php_stream_seek(dba->fp, 0, SEEK_END); fp 427 ext/dba/libinifile/inifile.c pos_curr = php_stream_tell(from->fp); fp 429 ext/dba/libinifile/inifile.c php_stream_seek(from->fp, pos_start, SEEK_SET); fp 430 ext/dba/libinifile/inifile.c if (!php_stream_copy_to_stream_ex(from->fp, dba->fp, pos_next - pos_start, NULL)) { fp 434 ext/dba/libinifile/inifile.c php_stream_seek(from->fp, pos_curr, SEEK_SET); fp 439 ext/dba/libinifile/inifile.c pos_next = php_stream_tell(from->fp); fp 448 ext/dba/libinifile/inifile.c php_stream_seek(from->fp, pos_start, SEEK_SET); fp 449 ext/dba/libinifile/inifile.c if (!php_stream_copy_to_stream_ex(from->fp, dba->fp, pos_next - pos_start, NULL)) { fp 497 ext/dba/libinifile/inifile.c php_stream_seek(dba->fp, 0, SEEK_END); fp 498 ext/dba/libinifile/inifile.c if (pos_grp_next != (size_t)php_stream_tell(dba->fp)) { fp 499 ext/dba/libinifile/inifile.c php_stream_seek(dba->fp, pos_grp_next, SEEK_SET); fp 500 ext/dba/libinifile/inifile.c if (!php_stream_copy_to_stream_ex(dba->fp, fp_tmp, PHP_STREAM_COPY_ALL, NULL)) { fp 528 ext/dba/libinifile/inifile.c php_stream_printf(dba->fp TSRMLS_CC, "[%s]\n", key->group); fp 530 ext/dba/libinifile/inifile.c php_stream_printf(dba->fp TSRMLS_CC, "%s=%s\n", key->name, value->value ? value->value : ""); fp 540 ext/dba/libinifile/inifile.c php_stream_seek(dba->fp, 0, SEEK_END); fp 541 ext/dba/libinifile/inifile.c if (!php_stream_copy_to_stream_ex(fp_tmp, dba->fp, PHP_STREAM_COPY_ALL, NULL)) { fp 549 ext/dba/libinifile/inifile.c php_stream_close(ini_tmp->fp); fp 555 ext/dba/libinifile/inifile.c php_stream_flush(dba->fp); fp 556 ext/dba/libinifile/inifile.c php_stream_seek(dba->fp, 0, SEEK_SET); fp 42 ext/dba/libinifile/inifile.h php_stream *fp; fp 63 ext/dba/libinifile/inifile.h inifile * inifile_alloc(php_stream *fp, int readonly, int persistent TSRMLS_DC); fp 35 ext/dba/php_dba.h php_stream *fp; fp 45 ext/dba/php_dba.h php_stream *fp; /* this is the database stream for builtin handlers */ fp 1192 ext/ereg/regex/regcomp.c register unsigned char *fp = mcfind(cs, cp); fp 1193 ext/ereg/regex/regcomp.c register size_t len = strlen(fp); fp 1195 ext/ereg/regex/regcomp.c assert(fp != NULL); fp 1196 ext/ereg/regex/regcomp.c (void) memmove(fp, fp + len + 1, fp 1197 ext/ereg/regex/regcomp.c cs->smultis - (fp + len + 1 - cs->multis)); fp 20 ext/ereg/regex/split.c register char **fp = fields; fp 44 ext/ereg/regex/split.c *fp++ = p; fp 68 ext/ereg/regex/split.c *fp++ = p; fp 72 ext/ereg/regex/split.c if (trimtrail && **(fp-1) == '\0') fp 112 ext/ereg/regex/split.c *fp++ = p; fp 2511 ext/fileinfo/libmagic/apprentice.c file_showstr(FILE *fp, const char *s, size_t len) fp 2527 ext/fileinfo/libmagic/apprentice.c (void) fputc(c, fp); fp 2529 ext/fileinfo/libmagic/apprentice.c (void) fputc('\\', fp); fp 2532 ext/fileinfo/libmagic/apprentice.c (void) fputc('a', fp); fp 2536 ext/fileinfo/libmagic/apprentice.c (void) fputc('b', fp); fp 2540 ext/fileinfo/libmagic/apprentice.c (void) fputc('f', fp); fp 2544 ext/fileinfo/libmagic/apprentice.c (void) fputc('n', fp); fp 2548 ext/fileinfo/libmagic/apprentice.c (void) fputc('r', fp); fp 2552 ext/fileinfo/libmagic/apprentice.c (void) fputc('t', fp); fp 2556 ext/fileinfo/libmagic/apprentice.c (void) fputc('v', fp); fp 2560 ext/fileinfo/libmagic/apprentice.c (void) fprintf(fp, "%.3o", c & 0377); fp 52 ext/fileinfo/libmagic/apptype.c FILE *fp; fp 68 ext/fileinfo/libmagic/apptype.c if ((fp = fopen(path, "wb")) == NULL) { fp 72 ext/fileinfo/libmagic/apptype.c if (fwrite(buf, 1, nb, fp) != nb) { fp 75 ext/fileinfo/libmagic/apptype.c (void)fclose(fp); fp 78 ext/fileinfo/libmagic/apptype.c (void)fclose(fp); fp 130 ext/ftp/php_ftp.c ZEND_ARG_INFO(0, fp) fp 138 ext/ftp/php_ftp.c ZEND_ARG_INFO(0, fp) fp 172 ext/ftp/php_ftp.c ZEND_ARG_INFO(0, fp) fp 180 ext/ftp/php_ftp.c ZEND_ARG_INFO(0, fp) fp 1085 ext/gd/gd.c gdFontPtr fp = (gdFontPtr) rsrc->ptr; fp 1087 ext/gd/gd.c if (fp->data) { fp 1088 ext/gd/gd.c efree(fp->data); fp 1091 ext/gd/gd.c efree(fp); fp 2373 ext/gd/gd.c FILE * fp = NULL; fp 2398 ext/gd/gd.c if (FAILURE == php_stream_cast(stream, PHP_STREAM_AS_STDIO, (void**)&fp, REPORT_ERRORS)) { fp 2432 ext/gd/gd.c if (FAILURE == php_stream_cast(stream, PHP_STREAM_AS_STDIO | PHP_STREAM_CAST_TRY_HARD, (void **) &fp, REPORT_ERRORS)) { fp 2437 ext/gd/gd.c if (!im && fp) { fp 2440 ext/gd/gd.c im = (*func_p)(fp, srcx, srcy, width, height); fp 2451 ext/gd/gd.c im = gdImageCreateFromJpegEx(fp, ignore_warning); fp 2456 ext/gd/gd.c im = (*func_p)(fp); fp 2460 ext/gd/gd.c fflush(fp); fp 2575 ext/gd/gd.c FILE *fp; fp 2602 ext/gd/gd.c fp = VCWD_FOPEN(fn, "wb"); fp 2603 ext/gd/gd.c if (!fp) { fp 2616 ext/gd/gd.c gdImageWBMP(im, q, fp); fp 2619 ext/gd/gd.c (*func_p)(im, fp, q); fp 2625 ext/gd/gd.c (*func_p)(im, i, fp); fp 2631 ext/gd/gd.c (*func_p)(im, fp); fp 2637 ext/gd/gd.c (*func_p)(im, fp, q, t); fp 2643 ext/gd/gd.c (*func_p)(im, fp, q, t); fp 2646 ext/gd/gd.c fflush(fp); fp 2647 ext/gd/gd.c fclose(fp); fp 92 ext/gd/libgd/gd_gif_out.c static void GIFEncode (gdIOCtxPtr fp, int GWidth, int GHeight, int GInterlace, int Background, int Transparent, int BitsPerPixel, int *Red, int *Green, int *Blue, gdImagePtr im); fp 257 ext/gd/libgd/gd_gif_out.c GIFEncode(gdIOCtxPtr fp, int GWidth, int GHeight, int GInterlace, int Background, int Transparent, int BitsPerPixel, int *Red, int *Green, int *Blue, gdImagePtr im) fp 306 ext/gd/libgd/gd_gif_out.c gdPutBuf(Transparent < 0 ? "GIF87a" : "GIF89a", 6, fp ); fp 311 ext/gd/libgd/gd_gif_out.c gifPutWord( RWidth, fp ); fp 312 ext/gd/libgd/gd_gif_out.c gifPutWord( RHeight, fp ); fp 332 ext/gd/libgd/gd_gif_out.c gdPutC( B, fp ); fp 337 ext/gd/libgd/gd_gif_out.c gdPutC( Background, fp ); fp 342 ext/gd/libgd/gd_gif_out.c gdPutC( 0, fp ); fp 348 ext/gd/libgd/gd_gif_out.c gdPutC( Red[i], fp ); fp 349 ext/gd/libgd/gd_gif_out.c gdPutC( Green[i], fp ); fp 350 ext/gd/libgd/gd_gif_out.c gdPutC( Blue[i], fp ); fp 357 ext/gd/libgd/gd_gif_out.c gdPutC( '!', fp ); fp 358 ext/gd/libgd/gd_gif_out.c gdPutC( 0xf9, fp ); fp 359 ext/gd/libgd/gd_gif_out.c gdPutC( 4, fp ); fp 360 ext/gd/libgd/gd_gif_out.c gdPutC( 1, fp ); fp 361 ext/gd/libgd/gd_gif_out.c gdPutC( 0, fp ); fp 362 ext/gd/libgd/gd_gif_out.c gdPutC( 0, fp ); fp 363 ext/gd/libgd/gd_gif_out.c gdPutC( (unsigned char) Transparent, fp ); fp 364 ext/gd/libgd/gd_gif_out.c gdPutC( 0, fp ); fp 370 ext/gd/libgd/gd_gif_out.c gdPutC( ',', fp ); fp 376 ext/gd/libgd/gd_gif_out.c gifPutWord( LeftOfs, fp ); fp 377 ext/gd/libgd/gd_gif_out.c gifPutWord( TopOfs, fp ); fp 378 ext/gd/libgd/gd_gif_out.c gifPutWord( ctx.Width, fp ); fp 379 ext/gd/libgd/gd_gif_out.c gifPutWord( ctx.Height, fp ); fp 385 ext/gd/libgd/gd_gif_out.c gdPutC( 0x40, fp ); fp 387 ext/gd/libgd/gd_gif_out.c gdPutC( 0x00, fp ); fp 392 ext/gd/libgd/gd_gif_out.c gdPutC( InitCodeSize, fp ); fp 397 ext/gd/libgd/gd_gif_out.c compress( InitCodeSize+1, fp, im, &ctx ); fp 402 ext/gd/libgd/gd_gif_out.c gdPutC( 0, fp ); fp 407 ext/gd/libgd/gd_gif_out.c gdPutC( ';', fp ); fp 381 ext/mbstring/libmbfl/tests/conv_encoding.tests/gen_exp.c FILE *fp; fp 400 ext/mbstring/libmbfl/tests/conv_encoding.tests/gen_exp.c fp = fopen(cp932_txt, "r"); fp 401 ext/mbstring/libmbfl/tests/conv_encoding.tests/gen_exp.c if (!fp) { fp 408 ext/mbstring/libmbfl/tests/conv_encoding.tests/gen_exp.c while (fgets(buf, sizeof(buf), fp)) { fp 1106 ext/mbstring/oniguruma/enc/mktable.c static int exec(FILE* fp, ENC_INFO* einfo) fp 1114 ext/mbstring/oniguruma/enc/mktable.c fprintf(fp, "static const unsigned short Enc%s_CtypeTable[256] = {\n", fp 1134 ext/mbstring/oniguruma/enc/mktable.c if (c % NCOL == 0) fputs(" ", fp); fp 1135 ext/mbstring/oniguruma/enc/mktable.c fprintf(fp, "0x%04x", val); fp 1136 ext/mbstring/oniguruma/enc/mktable.c if (c != 255) fputs(",", fp); fp 1138 ext/mbstring/oniguruma/enc/mktable.c fputs("\n", fp); fp 1140 ext/mbstring/oniguruma/enc/mktable.c fputs(" ", fp); fp 1142 ext/mbstring/oniguruma/enc/mktable.c fprintf(fp, "};\n"); fp 1149 ext/mbstring/oniguruma/enc/mktable.c FILE* fp = stdout; fp 1158 ext/mbstring/oniguruma/enc/mktable.c exec(fp, &Info[i]); fp 5029 ext/mbstring/oniguruma/regcomp.c static void print_enc_string(FILE* fp, OnigEncoding enc, fp 5032 ext/mbstring/oniguruma/regcomp.c fprintf(fp, "\nPATTERN: /"); fp 5042 ext/mbstring/oniguruma/regcomp.c fprintf(fp, " 0x%04x ", (int )code); fp 5045 ext/mbstring/oniguruma/regcomp.c fputc((int )code, fp); fp 5053 ext/mbstring/oniguruma/regcomp.c fputc((int )*s, fp); fp 5058 ext/mbstring/oniguruma/regcomp.c fprintf(fp, "/\n"); fp 419 ext/mbstring/oniguruma/regparse.c FILE* fp = (FILE* )arg; fp 421 ext/mbstring/oniguruma/regparse.c fprintf(fp, "%s: ", e->name); fp 423 ext/mbstring/oniguruma/regparse.c fputs("-", fp); fp 425 ext/mbstring/oniguruma/regparse.c fprintf(fp, "%d", e->back_ref1); fp 428 ext/mbstring/oniguruma/regparse.c if (i > 0) fprintf(fp, ", "); fp 429 ext/mbstring/oniguruma/regparse.c fprintf(fp, "%d", e->back_refs[i]); fp 432 ext/mbstring/oniguruma/regparse.c fputs("\n", fp); fp 437 ext/mbstring/oniguruma/regparse.c onig_print_names(FILE* fp, regex_t* reg) fp 442 ext/mbstring/oniguruma/regparse.c fprintf(fp, "name table\n"); fp 443 ext/mbstring/oniguruma/regparse.c onig_st_foreach(t, i_print_name_entry, (HashDataType )fp); fp 444 ext/mbstring/oniguruma/regparse.c fputs("\n", fp); fp 592 ext/mbstring/oniguruma/regparse.c onig_print_names(FILE* fp, regex_t* reg) fp 599 ext/mbstring/oniguruma/regparse.c fprintf(fp, "name table\n"); fp 602 ext/mbstring/oniguruma/regparse.c fprintf(fp, "%s: ", e->name); fp 604 ext/mbstring/oniguruma/regparse.c fputs("-", fp); fp 607 ext/mbstring/oniguruma/regparse.c fprintf(fp, "%d", e->back_ref1); fp 611 ext/mbstring/oniguruma/regparse.c if (j > 0) fprintf(fp, ", "); fp 612 ext/mbstring/oniguruma/regparse.c fprintf(fp, "%d", e->back_refs[j]); fp 615 ext/mbstring/oniguruma/regparse.c fputs("\n", fp); fp 617 ext/mbstring/oniguruma/regparse.c fputs("\n", fp); fp 712 ext/oci8/oci8_lob.c int fp; fp 729 ext/oci8/oci8_lob.c if ((fp = VCWD_OPEN(filename, O_RDONLY|O_BINARY)) == -1) { fp 734 ext/oci8/oci8_lob.c while ((loblen = read(fp, &buf, sizeof(buf))) > 0) { fp 756 ext/oci8/oci8_lob.c close(fp); fp 763 ext/oci8/oci8_lob.c close(fp); fp 1288 ext/odbc/php_odbc.c int fp; fp 1321 ext/odbc/php_odbc.c params[i].fp = -1; fp 1329 ext/odbc/php_odbc.c if (params[i].fp != -1) { fp 1330 ext/odbc/php_odbc.c close(params[i].fp); fp 1343 ext/odbc/php_odbc.c if (params[i].fp != -1) { fp 1344 ext/odbc/php_odbc.c close(params[i].fp); fp 1352 ext/odbc/php_odbc.c params[i-1].fp = -1; fp 1375 ext/odbc/php_odbc.c if (params[i].fp != -1) { fp 1376 ext/odbc/php_odbc.c close(params[i].fp); fp 1383 ext/odbc/php_odbc.c if ((params[i-1].fp = open(filename,O_RDONLY)) == -1) { fp 1387 ext/odbc/php_odbc.c if (params[i].fp != -1) { fp 1388 ext/odbc/php_odbc.c close(params[i].fp); fp 1402 ext/odbc/php_odbc.c (void *)params[i-1].fp, 0, fp 1421 ext/odbc/php_odbc.c if (params[i].fp != -1) { fp 1422 ext/odbc/php_odbc.c close(params[i].fp); fp 1443 ext/odbc/php_odbc.c int fp, nbytes; fp 1445 ext/odbc/php_odbc.c rc = SQLParamData(result->stmt, (void*)&fp); fp 1447 ext/odbc/php_odbc.c while ((nbytes = read(fp, &buf, 4096)) > 0) { fp 1469 ext/odbc/php_odbc.c if (params[i].fp != -1) { fp 1470 ext/odbc/php_odbc.c close(params[i].fp); fp 766 ext/opcache/ZendAccelerator.c if (fstat(fileno(file_handle->handle.fp), &statbuf) == -1) { fp 173 ext/opcache/shared_alloc_win32.c FILE *fp = fopen(mmap_base_file, "r"); fp 177 ext/opcache/shared_alloc_win32.c if (!fp) { fp 183 ext/opcache/shared_alloc_win32.c if (!fscanf(fp, "%p", &wanted_mapping_base)) { fp 187 ext/opcache/shared_alloc_win32.c fclose(fp); fp 190 ext/opcache/shared_alloc_win32.c fclose(fp); fp 350 ext/opcache/shared_alloc_win32.c FILE *fp = fopen(mmap_base_file, "w"); fp 352 ext/opcache/shared_alloc_win32.c if (!fp) { fp 358 ext/opcache/shared_alloc_win32.c fprintf(fp, "%p\n", mapping_base); fp 359 ext/opcache/shared_alloc_win32.c fclose(fp); fp 247 ext/opcache/zend_accelerator_blacklist.c FILE *fp; fp 251 ext/opcache/zend_accelerator_blacklist.c if ((fp = fopen(filename, "r")) == NULL) { fp 270 ext/opcache/zend_accelerator_blacklist.c while (fgets(buf, MAXPATHLEN, fp) != NULL) { fp 317 ext/opcache/zend_accelerator_blacklist.c fclose(fp); fp 324 ext/opcache/zend_accelerator_blacklist.c fclose(fp); fp 3113 ext/pgsql/pgsql.c FILE *fp = NULL; fp 3137 ext/pgsql/pgsql.c if (FAILURE == php_stream_cast(stream, PHP_STREAM_AS_STDIO, (void**)&fp, REPORT_ERRORS)) { fp 3142 ext/pgsql/pgsql.c PQtrace(pgsql, fp); fp 142 ext/phar/phar.c php_stream_close(phar->fp); fp 143 ext/phar/phar.c phar->fp = NULL; fp 254 ext/phar/phar.c if (phar->fp) { fp 255 ext/phar/phar.c php_stream_close(phar->fp); fp 256 ext/phar/phar.c phar->fp = 0; fp 288 ext/phar/phar.c if (phar->fp && !(phar->flags & PHAR_FILE_COMPRESSION_MASK)) { fp 293 ext/phar/phar.c php_stream_close(phar->fp); fp 294 ext/phar/phar.c phar->fp = NULL; fp 344 ext/phar/phar.c if (entry->fp && !entry->fp_refcount) { fp 345 ext/phar/phar.c php_stream_close(entry->fp); fp 346 ext/phar/phar.c entry->fp = NULL; fp 390 ext/phar/phar.c if (entry->fp) { fp 391 ext/phar/phar.c php_stream_close(entry->fp); fp 392 ext/phar/phar.c entry->fp = 0; fp 438 ext/phar/phar.c if (idata->fp && idata->fp != idata->phar->fp && idata->fp != idata->phar->ufp && idata->fp != idata->internal_file->fp) { fp 439 ext/phar/phar.c php_stream_close(idata->fp); fp 464 ext/phar/phar.c if (idata->fp && idata->fp != idata->phar->fp && idata->fp != idata->phar->ufp && idata->fp != idata->internal_file->fp) { fp 465 ext/phar/phar.c php_stream_close(idata->fp); fp 482 ext/phar/phar.c if (fp) {\ fp 483 ext/phar/phar.c php_stream_close(fp);\ fp 650 ext/phar/phar.c static int phar_parse_pharfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, long halt_offset, phar_archive_data** pphar, php_uint32 compression, char **error TSRMLS_DC) /* {{{ */ fp 671 ext/phar/phar.c if (-1 == php_stream_seek(fp, halt_offset, SEEK_SET)) { fp 677 ext/phar/phar.c if (3 != php_stream_read(fp, buffer, 3)) { fp 684 ext/phar/phar.c if (EOF == (nextchar = php_stream_getc(fp))) { fp 690 ext/phar/phar.c if (EOF == (nextchar = php_stream_getc(fp)) || (char)nextchar != '\n') { fp 702 ext/phar/phar.c if (-1 == php_stream_seek(fp, halt_offset, SEEK_SET)) { fp 709 ext/phar/phar.c if (4 != php_stream_read(fp, buffer, 4)) { fp 724 ext/phar/phar.c if (manifest_len < 10 || manifest_len != php_stream_read(fp, buffer, manifest_len)) { fp 742 ext/phar/phar.c php_stream_close(fp); fp 763 ext/phar/phar.c if (-1 == php_stream_seek(fp, -8, SEEK_END) fp 764 ext/phar/phar.c || (read_len = php_stream_tell(fp)) < 20 fp 765 ext/phar/phar.c || 8 != php_stream_read(fp, sig_buf, 8) fp 768 ext/phar/phar.c php_stream_close(fp); fp 784 ext/phar/phar.c if (-1 == php_stream_seek(fp, -12, SEEK_CUR) fp 785 ext/phar/phar.c || 4 != php_stream_read(fp, sig_buf, 4)) { fp 787 ext/phar/phar.c php_stream_close(fp); fp 800 ext/phar/phar.c if (-1 == php_stream_seek(fp, whence, SEEK_CUR) fp 801 ext/phar/phar.c || !(end_of_phar = php_stream_tell(fp)) fp 802 ext/phar/phar.c || signature_len != php_stream_read(fp, sig, signature_len)) { fp 805 ext/phar/phar.c php_stream_close(fp); fp 812 ext/phar/phar.c if (FAILURE == phar_verify_signature(fp, end_of_phar, PHAR_SIG_OPENSSL, sig, signature_len, fname, &signature, &sig_len, error TSRMLS_CC)) { fp 815 ext/phar/phar.c php_stream_close(fp); fp 830 ext/phar/phar.c php_stream_seek(fp, -(8 + 64), SEEK_END); fp 831 ext/phar/phar.c read_len = php_stream_tell(fp); fp 833 ext/phar/phar.c if (php_stream_read(fp, (char*)digest, sizeof(digest)) != sizeof(digest)) { fp 835 ext/phar/phar.c php_stream_close(fp); fp 842 ext/phar/phar.c if (FAILURE == phar_verify_signature(fp, read_len, PHAR_SIG_SHA512, (char *)digest, 64, fname, &signature, &sig_len, error TSRMLS_CC)) { fp 844 ext/phar/phar.c php_stream_close(fp); fp 857 ext/phar/phar.c php_stream_seek(fp, -(8 + 32), SEEK_END); fp 858 ext/phar/phar.c read_len = php_stream_tell(fp); fp 860 ext/phar/phar.c if (php_stream_read(fp, (char*)digest, sizeof(digest)) != sizeof(digest)) { fp 862 ext/phar/phar.c php_stream_close(fp); fp 869 ext/phar/phar.c if (FAILURE == phar_verify_signature(fp, read_len, PHAR_SIG_SHA256, (char *)digest, 32, fname, &signature, &sig_len, error TSRMLS_CC)) { fp 871 ext/phar/phar.c php_stream_close(fp); fp 885 ext/phar/phar.c php_stream_close(fp); fp 895 ext/phar/phar.c php_stream_seek(fp, -(8 + 20), SEEK_END); fp 896 ext/phar/phar.c read_len = php_stream_tell(fp); fp 898 ext/phar/phar.c if (php_stream_read(fp, (char*)digest, sizeof(digest)) != sizeof(digest)) { fp 900 ext/phar/phar.c php_stream_close(fp); fp 907 ext/phar/phar.c if (FAILURE == phar_verify_signature(fp, read_len, PHAR_SIG_SHA1, (char *)digest, 20, fname, &signature, &sig_len, error TSRMLS_CC)) { fp 909 ext/phar/phar.c php_stream_close(fp); fp 922 ext/phar/phar.c php_stream_seek(fp, -(8 + 16), SEEK_END); fp 923 ext/phar/phar.c read_len = php_stream_tell(fp); fp 925 ext/phar/phar.c if (php_stream_read(fp, (char*)digest, sizeof(digest)) != sizeof(digest)) { fp 927 ext/phar/phar.c php_stream_close(fp); fp 934 ext/phar/phar.c if (FAILURE == phar_verify_signature(fp, read_len, PHAR_SIG_MD5, (char *)digest, 16, fname, &signature, &sig_len, error TSRMLS_CC)) { fp 936 ext/phar/phar.c php_stream_close(fp); fp 948 ext/phar/phar.c php_stream_close(fp); fp 957 ext/phar/phar.c php_stream_close(fp); fp 985 ext/phar/phar.c php_stream_close(fp); fp 1197 ext/phar/phar.c mydata->fp = fp; fp 1209 ext/phar/phar.c fp = NULL; fp 1216 ext/phar/phar.c fp = NULL; fp 1320 ext/phar/phar.c php_stream *fp; fp 1336 ext/phar/phar.c fp = php_stream_open_wrapper(fname, "rb", IGNORE_URL|STREAM_MUST_SEEK|0, &actual); fp 1343 ext/phar/phar.c if (fp) { fp 1344 ext/phar/phar.c if (phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error TSRMLS_CC) == SUCCESS) { fp 1407 ext/phar/phar.c mydata->fp = NULL; fp 1473 ext/phar/phar.c php_stream *fp; fp 1499 ext/phar/phar.c fp = php_stream_open_wrapper(fname, "rb", IGNORE_URL|STREAM_MUST_SEEK, &actual); fp 1501 ext/phar/phar.c if (!fp) { fp 1518 ext/phar/phar.c ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error TSRMLS_CC); fp 1562 ext/phar/phar.c static int phar_open_from_fp(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, int is_data, char **error TSRMLS_DC) /* {{{ */ fp 1581 ext/phar/phar.c if (-1 == php_stream_rewind(fp)) { fp 1591 ext/phar/phar.c while(!php_stream_eof(fp)) { fp 1592 ext/phar/phar.c if ((got = php_stream_read(fp, buffer+tokenlen, readsize)) < (size_t) tokenlen) { fp 1621 ext/phar/phar.c php_stream_rewind(fp); fp 1622 ext/phar/phar.c filter = php_stream_filter_create("zlib.inflate", &filterparams, php_stream_is_persistent(fp) TSRMLS_CC); fp 1627 ext/phar/phar.c filter = php_stream_filter_create("zlib.inflate", &filterparams, php_stream_is_persistent(fp) TSRMLS_CC); fp 1640 ext/phar/phar.c if (SUCCESS != php_stream_copy_to_stream_ex(fp, temp, PHP_STREAM_COPY_ALL, NULL)) { fp 1651 ext/phar/phar.c php_stream_close(fp); fp 1652 ext/phar/phar.c fp = temp; fp 1653 ext/phar/phar.c php_stream_rewind(fp); fp 1672 ext/phar/phar.c php_stream_rewind(fp); fp 1673 ext/phar/phar.c filter = php_stream_filter_create("bzip2.decompress", NULL, php_stream_is_persistent(fp) TSRMLS_CC); fp 1682 ext/phar/phar.c if (SUCCESS != php_stream_copy_to_stream_ex(fp, temp, PHP_STREAM_COPY_ALL, NULL)) { fp 1689 ext/phar/phar.c php_stream_close(fp); fp 1690 ext/phar/phar.c fp = temp; fp 1691 ext/phar/phar.c php_stream_rewind(fp); fp 1700 ext/phar/phar.c php_stream_seek(fp, 0, SEEK_END); fp 1701 ext/phar/phar.c return phar_parse_zipfile(fp, fname, fname_len, alias, alias_len, pphar, error TSRMLS_CC); fp 1706 ext/phar/phar.c php_stream_rewind(fp); fp 1707 ext/phar/phar.c return phar_parse_tarfile(fp, fname, fname_len, alias, alias_len, pphar, is_data, compression, error TSRMLS_CC); fp 1714 ext/phar/phar.c return phar_parse_pharfile(fp, fname, fname_len, alias, alias_len, halt_offset, pphar, compression, error TSRMLS_CC); fp 2312 ext/phar/phar.c php_stream *fp; fp 2357 ext/phar/phar.c fp = php_stream_open_wrapper(fname, "rb", IGNORE_URL|STREAM_MUST_SEEK|REPORT_ERRORS, &actual); fp 2359 ext/phar/phar.c if (!fp) { fp 2374 ext/phar/phar.c ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, REPORT_ERRORS, NULL, 0, error TSRMLS_CC); fp 2391 ext/phar/phar.c php_stream *fp = idata->fp; fp 2453 ext/phar/phar.c php_stream_seek(fp, idata->zero, SEEK_SET); fp 2456 ext/phar/phar.c CRC32(crc, php_stream_getc(fp)); fp 2459 ext/phar/phar.c php_stream_seek(fp, idata->zero, SEEK_SET); fp 2598 ext/phar/phar.c if (phar->fp && !phar->is_brandnew) { fp 2599 ext/phar/phar.c oldfile = phar->fp; fp 3134 ext/phar/phar.c if (entry->fp_refcount == 0 && entry->fp != phar->fp && entry->fp != phar->ufp) { fp 3135 ext/phar/phar.c php_stream_close(entry->fp); fp 3138 ext/phar/phar.c entry->fp = NULL; fp 3206 ext/phar/phar.c if (phar->fp && free_fp) { fp 3207 ext/phar/phar.c php_stream_close(phar->fp); fp 3229 ext/phar/phar.c phar->fp = newfile; fp 3231 ext/phar/phar.c phar->fp = php_stream_open_wrapper(phar->fname, "w+b", IGNORE_URL|STREAM_MUST_SEEK|REPORT_ERRORS, NULL); fp 3232 ext/phar/phar.c if (!phar->fp) { fp 3233 ext/phar/phar.c phar->fp = newfile; fp 3246 ext/phar/phar.c filter = php_stream_filter_create("zlib.deflate", &filterparams, php_stream_is_persistent(phar->fp) TSRMLS_CC); fp 3256 ext/phar/phar.c php_stream_filter_append(&phar->fp->writefilters, filter); fp 3257 ext/phar/phar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); fp 3260 ext/phar/phar.c php_stream_close(phar->fp); fp 3262 ext/phar/phar.c phar->fp = newfile; fp 3264 ext/phar/phar.c filter = php_stream_filter_create("bzip2.compress", NULL, php_stream_is_persistent(phar->fp) TSRMLS_CC); fp 3265 ext/phar/phar.c php_stream_filter_append(&phar->fp->writefilters, filter); fp 3266 ext/phar/phar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); fp 3269 ext/phar/phar.c php_stream_close(phar->fp); fp 3271 ext/phar/phar.c phar->fp = newfile; fp 3273 ext/phar/phar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); fp 3279 ext/phar/phar.c if (-1 == php_stream_seek(phar->fp, phar->halt_offset, SEEK_SET)) { fp 3361 ext/phar/phar.c php_stream_rewind(PHAR_GLOBALS->cached_fp[phar->phar_pos].fp) : fp 3362 ext/phar/phar.c php_stream_rewind(phar->fp); fp 3551 ext/phar/phar.c if (PHAR_GLOBALS->cached_fp[i].fp) { fp 3552 ext/phar/phar.c php_stream_close(PHAR_GLOBALS->cached_fp[i].fp); fp 259 ext/phar/phar_internal.h php_stream *fp; fp 309 ext/phar/phar_internal.h php_stream *fp; fp 343 ext/phar/phar_internal.h php_stream *fp; fp 351 ext/phar/phar_internal.h return entry->phar->fp; fp 353 ext/phar/phar_internal.h return PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].fp; fp 364 ext/phar/phar_internal.h static inline void phar_set_entrypfp(phar_entry_info *entry, php_stream *fp TSRMLS_DC) fp 367 ext/phar/phar_internal.h entry->phar->fp = fp; fp 371 ext/phar/phar_internal.h PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].fp = fp; fp 374 ext/phar/phar_internal.h static inline void phar_set_entrypufp(phar_entry_info *entry, php_stream *fp TSRMLS_DC) fp 377 ext/phar/phar_internal.h entry->phar->ufp = fp; fp 381 ext/phar/phar_internal.h PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].ufp = fp; fp 387 ext/phar/phar_internal.h return phar->fp; fp 389 ext/phar/phar_internal.h return PHAR_GLOBALS->cached_fp[phar->phar_pos].fp; fp 400 ext/phar/phar_internal.h static inline void phar_set_pharfp(phar_archive_data *phar, php_stream *fp TSRMLS_DC) fp 403 ext/phar/phar_internal.h phar->fp = fp; fp 407 ext/phar/phar_internal.h PHAR_GLOBALS->cached_fp[phar->phar_pos].fp = fp; fp 410 ext/phar/phar_internal.h static inline void phar_set_pharufp(phar_archive_data *phar, php_stream *fp TSRMLS_DC) fp 413 ext/phar/phar_internal.h phar->ufp = fp; fp 417 ext/phar/phar_internal.h PHAR_GLOBALS->cached_fp[phar->phar_pos].ufp = fp; fp 469 ext/phar/phar_internal.h php_stream *fp; fp 567 ext/phar/phar_internal.h int phar_verify_signature(php_stream *fp, size_t end_of_phar, php_uint32 sig_type, char *sig, int sig_len, char *fname, char **signature, int *signature_len, char **error TSRMLS_DC); fp 568 ext/phar/phar_internal.h int phar_create_signature(phar_archive_data *phar, php_stream *fp, char **signature, int *signature_length, char **error TSRMLS_DC); fp 595 ext/phar/phar_internal.h int phar_parse_tarfile(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, phar_archive_data** pphar, int is_data, php_uint32 compression, char **error TSRMLS_DC); fp 600 ext/phar/phar_internal.h int phar_parse_zipfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, phar_archive_data** pphar, char **error TSRMLS_DC); fp 605 ext/phar/phar_internal.h static int phar_open_from_fp(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, int is_data, char **error TSRMLS_DC); fp 176 ext/phar/phar_object.c php_stream *fp; fp 212 ext/phar/phar_object.c fp = phar_get_efp(info, 1 TSRMLS_CC); fp 214 ext/phar/phar_object.c if (!fp) { fp 223 ext/phar/phar_object.c fp = phar_get_efp(info, 1 TSRMLS_CC); fp 229 ext/phar/phar_object.c got = php_stream_read(fp, buf, MIN(8192, info->uncompressed_filesize - position)); fp 1415 ext/phar/phar_object.c php_stream *fp; fp 1425 ext/phar/phar_object.c php_stream *fp; fp 1449 ext/phar/phar_object.c php_stream_from_zval_no_verify(fp, value); fp 1451 ext/phar/phar_object.c if (!fp) { fp 1639 ext/phar/phar_object.c fp = php_stream_open_wrapper(fname, "rb", STREAM_MUST_SEEK|0, &opened); fp 1641 ext/phar/phar_object.c if (!fp) { fp 1670 ext/phar/phar_object.c php_stream_close(fp); fp 1693 ext/phar/phar_object.c php_stream_close(fp); fp 1704 ext/phar/phar_object.c php_stream_close(data->internal_file->fp); fp 1707 ext/phar/phar_object.c data->internal_file->fp = NULL; fp 1709 ext/phar/phar_object.c data->internal_file->offset_abs = data->internal_file->offset = php_stream_tell(p_obj->fp); fp 1710 ext/phar/phar_object.c data->fp = NULL; fp 1711 ext/phar/phar_object.c php_stream_copy_to_stream_ex(fp, p_obj->fp, PHP_STREAM_COPY_ALL, &contents_len); fp 1713 ext/phar/phar_object.c php_stream_tell(p_obj->fp) - data->internal_file->offset; fp 1717 ext/phar/phar_object.c php_stream_close(fp); fp 1830 ext/phar/phar_object.c pass.fp = php_stream_fopen_tmpfile(); fp 1831 ext/phar/phar_object.c if (pass.fp == NULL) { fp 1841 ext/phar/phar_object.c php_stream_close(pass.fp); fp 1853 ext/phar/phar_object.c phar_obj->arc.archive->ufp = pass.fp; fp 1866 ext/phar/phar_object.c php_stream_close(pass.fp); fp 1914 ext/phar/phar_object.c pass.fp = php_stream_fopen_tmpfile(); fp 1915 ext/phar/phar_object.c if (pass.fp == NULL) { fp 1921 ext/phar/phar_object.c phar_obj->arc.archive->ufp = pass.fp; fp 1928 ext/phar/phar_object.c php_stream_close(pass.fp); fp 1976 ext/phar/phar_object.c static int phar_copy_file_contents(phar_entry_info *entry, php_stream *fp TSRMLS_DC) /* {{{ */ fp 1996 ext/phar/phar_object.c offset = php_stream_tell(fp); fp 2003 ext/phar/phar_object.c if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(link, 0 TSRMLS_CC), fp, link->uncompressed_filesize, NULL)) { fp 2011 ext/phar/phar_object.c entry->cfp = entry->fp; fp 2012 ext/phar/phar_object.c entry->fp = NULL; fp 2129 ext/phar/phar_object.c (*pphar)->fp = phar->fp; fp 2130 ext/phar/phar_object.c phar->fp = NULL; fp 2255 ext/phar/phar_object.c phar->fp = php_stream_fopen_tmpfile(); fp 2256 ext/phar/phar_object.c if (phar->fp == NULL) { fp 2282 ext/phar/phar_object.c php_stream_close(phar->fp); fp 2303 ext/phar/phar_object.c if (FAILURE == phar_copy_file_contents(&newentry, phar->fp TSRMLS_CC)) { fp 2305 ext/phar/phar_object.c php_stream_close(phar->fp); fp 2348 ext/phar/phar_object.c if (phar->fp) { fp 2349 ext/phar/phar_object.c php_stream_close(phar->fp); fp 3520 ext/phar/phar_object.c php_stream_close(newentry.fp); fp 3654 ext/phar/phar_object.c contents_len = php_stream_write(data->fp, cont_str, cont_len); fp 3664 ext/phar/phar_object.c php_stream_copy_to_stream_ex(contents_file, data->fp, PHP_STREAM_COPY_ALL, &contents_len); fp 3906 ext/phar/phar_object.c php_stream *fp; fp 3919 ext/phar/phar_object.c if (phar_obj->arc.archive->fp && !phar_obj->arc.archive->is_brandnew && !(stub->flags & PHAR_ENT_COMPRESSION_MASK)) { fp 3920 ext/phar/phar_object.c fp = phar_obj->arc.archive->fp; fp 3922 ext/phar/phar_object.c if (!(fp = php_stream_open_wrapper(phar_obj->arc.archive->fname, "rb", 0, NULL))) { fp 3930 ext/phar/phar_object.c filter = php_stream_filter_create(filter_name, NULL, php_stream_is_persistent(fp) TSRMLS_CC); fp 3938 ext/phar/phar_object.c php_stream_filter_append(&fp->readfilters, filter); fp 3942 ext/phar/phar_object.c if (!fp) { fp 3948 ext/phar/phar_object.c php_stream_seek(fp, stub->offset_abs, SEEK_SET); fp 3957 ext/phar/phar_object.c if (phar_obj->arc.archive->fp && !phar_obj->arc.archive->is_brandnew) { fp 3958 ext/phar/phar_object.c fp = phar_obj->arc.archive->fp; fp 3960 ext/phar/phar_object.c fp = php_stream_open_wrapper(phar_obj->arc.archive->fname, "rb", 0, NULL); fp 3963 ext/phar/phar_object.c if (!fp) { fp 3969 ext/phar/phar_object.c php_stream_rewind(fp); fp 3973 ext/phar/phar_object.c if (len != php_stream_read(fp, buf, len)) { fp 3974 ext/phar/phar_object.c if (fp != phar_obj->arc.archive->fp) { fp 3975 ext/phar/phar_object.c php_stream_close(fp); fp 3988 ext/phar/phar_object.c if (fp != phar_obj->arc.archive->fp) { fp 3989 ext/phar/phar_object.c php_stream_close(fp); fp 4118 ext/phar/phar_object.c php_stream *fp; fp 4248 ext/phar/phar_object.c fp = php_stream_open_wrapper(fullpath, "w+b", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL); fp 4250 ext/phar/phar_object.c fp = php_stream_open_wrapper(fullpath, "w+b", REPORT_ERRORS, NULL); fp 4253 ext/phar/phar_object.c if (!fp) { fp 4267 ext/phar/phar_object.c php_stream_close(fp); fp 4275 ext/phar/phar_object.c php_stream_close(fp); fp 4279 ext/phar/phar_object.c if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(entry, 0 TSRMLS_CC), fp, entry->uncompressed_filesize, NULL)) { fp 4282 ext/phar/phar_object.c php_stream_close(fp); fp 4286 ext/phar/phar_object.c php_stream_close(fp); fp 4306 ext/phar/phar_object.c php_stream *fp; fp 4322 ext/phar/phar_object.c fp = php_stream_open_wrapper(phar_obj->arc.archive->fname, "rb", IGNORE_URL|STREAM_MUST_SEEK, &actual); fp 4324 ext/phar/phar_object.c if (!fp) { fp 4331 ext/phar/phar_object.c php_stream_close(fp); fp 4853 ext/phar/phar_object.c php_stream *fp; fp 4881 ext/phar/phar_object.c if (!(fp = phar_get_efp(link, 0 TSRMLS_CC))) { fp 4890 ext/phar/phar_object.c Z_STRLEN_P(return_value) = php_stream_copy_to_mem(fp, &(Z_STRVAL_P(return_value)), link->uncompressed_filesize, 0); fp 5081 ext/phar/phar_object.c if (!entry_obj->ent.entry->fp) { fp 270 ext/phar/stream.c idata->fp = phar_get_pharfp(phar TSRMLS_CC); fp 377 ext/phar/stream.c php_stream_seek(data->fp, data->position + data->zero, SEEK_SET); fp 379 ext/phar/stream.c got = php_stream_read(data->fp, buf, MIN(count, entry->uncompressed_filesize - data->position)); fp 380 ext/phar/stream.c data->position = php_stream_tell(data->fp) - data->zero; fp 424 ext/phar/stream.c res = php_stream_seek(data->fp, temp, SEEK_SET); fp 425 ext/phar/stream.c *newoffset = php_stream_tell(data->fp) - data->zero; fp 438 ext/phar/stream.c php_stream_seek(data->fp, data->position, SEEK_SET); fp 439 ext/phar/stream.c if (count != php_stream_write(data->fp, buf, count)) { fp 443 ext/phar/stream.c data->position = php_stream_tell(data->fp); fp 869 ext/phar/stream.c entry->fp = NULL; fp 161 ext/phar/tar.c static int phar_tar_process_metadata(phar_entry_info *entry, php_stream *fp TSRMLS_DC) /* {{{ */ fp 164 ext/phar/tar.c size_t save = php_stream_tell(fp), read; fp 169 ext/phar/tar.c read = php_stream_read(fp, metadata, entry->uncompressed_filesize); fp 172 ext/phar/tar.c php_stream_seek(fp, save, SEEK_SET); fp 179 ext/phar/tar.c php_stream_seek(fp, save, SEEK_SET); fp 193 ext/phar/tar.c php_stream_seek(fp, save, SEEK_SET); fp 205 ext/phar/tar.c int phar_parse_tarfile(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, phar_archive_data** pphar, int is_data, php_uint32 compression, char **error TSRMLS_DC) /* {{{ */ fp 220 ext/phar/tar.c php_stream_seek(fp, 0, SEEK_END); fp 221 ext/phar/tar.c totalsize = php_stream_tell(fp); fp 222 ext/phar/tar.c php_stream_seek(fp, 0, SEEK_SET); fp 223 ext/phar/tar.c read = php_stream_read(fp, buf, sizeof(buf)); fp 229 ext/phar/tar.c php_stream_close(fp); fp 257 ext/phar/tar.c pos = php_stream_tell(fp); fp 283 ext/phar/tar.c php_stream_close(fp); fp 287 ext/phar/tar.c curloc = php_stream_tell(fp); fp 288 ext/phar/tar.c read = php_stream_read(fp, buf, size); fp 305 ext/phar/tar.c if (FAILURE == phar_verify_signature(fp, php_stream_tell(fp) - size - 512, myphar->sig_flags, buf + 8, size - 8, fname, &myphar->signature, &myphar->sig_len, error TSRMLS_CC)) { fp 313 ext/phar/tar.c php_stream_seek(fp, curloc + 512, SEEK_SET); fp 317 ext/phar/tar.c php_stream_seek(fp, 512, SEEK_CUR); fp 318 ext/phar/tar.c if ((uint)php_stream_tell(fp) > totalsize) { fp 322 ext/phar/tar.c php_stream_close(fp); fp 328 ext/phar/tar.c read = php_stream_read(fp, buf, sizeof(buf)); fp 334 ext/phar/tar.c php_stream_close(fp); fp 363 ext/phar/tar.c php_stream_close(fp); fp 369 ext/phar/tar.c read = php_stream_read(fp, entry.filename, entry.filename_len); fp 375 ext/phar/tar.c php_stream_close(fp); fp 385 ext/phar/tar.c php_stream_seek(fp, size, SEEK_CUR); fp 386 ext/phar/tar.c if ((uint)php_stream_tell(fp) > totalsize) { fp 391 ext/phar/tar.c php_stream_close(fp); fp 396 ext/phar/tar.c read = php_stream_read(fp, buf, sizeof(buf)); fp 403 ext/phar/tar.c php_stream_close(fp); fp 460 ext/phar/tar.c php_stream_close(fp); fp 494 ext/phar/tar.c php_stream_close(fp); fp 512 ext/phar/tar.c if (FAILURE == phar_tar_process_metadata(newentry, fp TSRMLS_CC)) { fp 516 ext/phar/tar.c php_stream_close(fp); fp 528 ext/phar/tar.c php_stream_close(fp); fp 533 ext/phar/tar.c read = php_stream_read(fp, buf, size); fp 549 ext/phar/tar.c php_stream_close(fp); fp 557 ext/phar/tar.c php_stream_seek(fp, pos, SEEK_SET); fp 563 ext/phar/tar.c php_stream_close(fp); fp 574 ext/phar/tar.c php_stream_seek(fp, size, SEEK_CUR); fp 575 ext/phar/tar.c if ((uint)php_stream_tell(fp) > totalsize) { fp 579 ext/phar/tar.c php_stream_close(fp); fp 585 ext/phar/tar.c read = php_stream_read(fp, buf, sizeof(buf)); fp 591 ext/phar/tar.c php_stream_close(fp); fp 605 ext/phar/tar.c php_stream_close(fp); fp 618 ext/phar/tar.c myphar->fp = fp; fp 637 ext/phar/tar.c php_stream_close(fp); fp 705 ext/phar/tar.c struct _phar_pass_tar_info *fp = (struct _phar_pass_tar_info *)argument; fp 727 ext/phar/tar.c if (fp->error) { fp 728 ext/phar/tar.c spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too long for tar file format", entry->phar->fname, entry->filename); fp 737 ext/phar/tar.c if (fp->error) { fp 738 ext/phar/tar.c spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too long for tar file format", entry->phar->fname, entry->filename); fp 751 ext/phar/tar.c if (fp->error) { fp 752 ext/phar/tar.c spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); fp 758 ext/phar/tar.c if (fp->error) { fp 759 ext/phar/tar.c spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, file modification time of file \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); fp 777 ext/phar/tar.c if (fp->error) { fp 778 ext/phar/tar.c spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, checksum of file \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); fp 784 ext/phar/tar.c entry->header_offset = php_stream_tell(fp->new); fp 786 ext/phar/tar.c if (sizeof(header) != php_stream_write(fp->new, (char *) &header, sizeof(header))) { fp 787 ext/phar/tar.c if (fp->error) { fp 788 ext/phar/tar.c spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, header for file \"%s\" could not be written", entry->phar->fname, entry->filename); fp 793 ext/phar/tar.c pos = php_stream_tell(fp->new); /* save start of file within tar */ fp 797 ext/phar/tar.c if (FAILURE == phar_open_entry_fp(entry, fp->error, 0 TSRMLS_CC)) { fp 802 ext/phar/tar.c if (fp->error) { fp 803 ext/phar/tar.c spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could not be written, seek failed", entry->phar->fname, entry->filename); fp 808 ext/phar/tar.c if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(entry, 0 TSRMLS_CC), fp->new, entry->uncompressed_filesize, NULL)) { fp 809 ext/phar/tar.c if (fp->error) { fp 810 ext/phar/tar.c spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could not be written", entry->phar->fname, entry->filename); fp 816 ext/phar/tar.c php_stream_write(fp->new, padding, ((entry->uncompressed_filesize +511)&~511) - entry->uncompressed_filesize); fp 823 ext/phar/tar.c fp->free_fp = 0; fp 826 ext/phar/tar.c fp->free_ufp = 0; fp 834 ext/phar/tar.c if (entry->fp_type == PHAR_MOD && entry->fp != entry->phar->fp && entry->fp != entry->phar->ufp) { fp 836 ext/phar/tar.c php_stream_close(entry->fp); fp 838 ext/phar/tar.c entry->fp = NULL; fp 864 ext/phar/tar.c if (entry->fp && entry->fp_type == PHAR_MOD) { fp 865 ext/phar/tar.c php_stream_close(entry->fp); fp 870 ext/phar/tar.c entry->fp = php_stream_fopen_tmpfile(); fp 872 ext/phar/tar.c if (entry->fp == NULL) { fp 876 ext/phar/tar.c if (entry->metadata_str.len != php_stream_write(entry->fp, entry->metadata_str.c, entry->metadata_str.len)) { fp 979 ext/phar/tar.c entry.fp = php_stream_fopen_tmpfile(); fp 980 ext/phar/tar.c if (entry.fp == NULL) { fp 984 ext/phar/tar.c if (phar->alias_len != (int)php_stream_write(entry.fp, phar->alias, phar->alias_len)) { fp 1047 ext/phar/tar.c entry.fp = php_stream_fopen_tmpfile(); fp 1048 ext/phar/tar.c if (entry.fp == NULL) { fp 1054 ext/phar/tar.c if ((size_t)len != php_stream_write(entry.fp, user_stub, len) fp 1055 ext/phar/tar.c || 5 != php_stream_write(entry.fp, " ?>\r\n", 5)) { fp 1062 ext/phar/tar.c php_stream_close(entry.fp); fp 1075 ext/phar/tar.c entry.fp = php_stream_fopen_tmpfile(); fp 1076 ext/phar/tar.c if (entry.fp == NULL) { fp 1080 ext/phar/tar.c if (sizeof(newstub)-1 != php_stream_write(entry.fp, newstub, sizeof(newstub)-1)) { fp 1081 ext/phar/tar.c php_stream_close(entry.fp); fp 1095 ext/phar/tar.c php_stream_close(entry.fp); fp 1103 ext/phar/tar.c php_stream_close(entry.fp); fp 1108 ext/phar/tar.c php_stream_close(entry.fp); fp 1118 ext/phar/tar.c if (phar->fp && !phar->is_brandnew) { fp 1119 ext/phar/tar.c oldfile = phar->fp; fp 1213 ext/phar/tar.c entry.fp = php_stream_fopen_tmpfile(); fp 1214 ext/phar/tar.c if (entry.fp == NULL) { fp 1230 ext/phar/tar.c if (8 != (int)php_stream_write(entry.fp, sigbuf, 8) || signature_length != (int)php_stream_write(entry.fp, signature, signature_length)) { fp 1273 ext/phar/tar.c if (phar->fp && pass.free_fp) { fp 1274 ext/phar/tar.c php_stream_close(phar->fp); fp 1289 ext/phar/tar.c phar->fp = newfile; fp 1291 ext/phar/tar.c phar->fp = php_stream_open_wrapper(phar->fname, "w+b", IGNORE_URL|STREAM_MUST_SEEK|REPORT_ERRORS, NULL); fp 1292 ext/phar/tar.c if (!phar->fp) { fp 1293 ext/phar/tar.c phar->fp = newfile; fp 1311 ext/phar/tar.c filter = php_stream_filter_create("zlib.deflate", &filterparams, php_stream_is_persistent(phar->fp) TSRMLS_CC); fp 1316 ext/phar/tar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); fp 1324 ext/phar/tar.c php_stream_filter_append(&phar->fp->writefilters, filter); fp 1325 ext/phar/tar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); fp 1328 ext/phar/tar.c php_stream_close(phar->fp); fp 1330 ext/phar/tar.c phar->fp = newfile; fp 1334 ext/phar/tar.c filter = php_stream_filter_create("bzip2.compress", NULL, php_stream_is_persistent(phar->fp) TSRMLS_CC); fp 1335 ext/phar/tar.c php_stream_filter_append(&phar->fp->writefilters, filter); fp 1336 ext/phar/tar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); fp 1339 ext/phar/tar.c php_stream_close(phar->fp); fp 1341 ext/phar/tar.c phar->fp = newfile; fp 1343 ext/phar/tar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); fp 41 ext/phar/util.c static int phar_call_openssl_signverify(int is_sign, php_stream *fp, off_t end, char *key, int key_len, char **signature, int *signature_len TSRMLS_DC); fp 109 ext/phar/util.c return entry->fp; fp 112 ext/phar/util.c if (!entry->fp) { fp 113 ext/phar/util.c entry->fp = php_stream_open_wrapper(entry->tmp, "rb", STREAM_MUST_SEEK|0, NULL); fp 115 ext/phar/util.c return entry->fp; fp 122 ext/phar/util.c php_stream *fp = phar_get_efp(entry, follow_links TSRMLS_CC); fp 125 ext/phar/util.c if (!fp) { fp 165 ext/phar/util.c return php_stream_seek(fp, temp, SEEK_SET); fp 441 ext/phar/util.c (*ret)->fp = NULL; fp 495 ext/phar/util.c (*ret)->fp = phar_get_efp(entry, 1 TSRMLS_CC); fp 564 ext/phar/util.c etemp.fp = php_stream_fopen_tmpfile(); fp 566 ext/phar/util.c if (!etemp.fp) { fp 601 ext/phar/util.c php_stream_close(etemp.fp); fp 611 ext/phar/util.c php_stream_close(etemp.fp); fp 619 ext/phar/util.c ret->fp = entry->fp; fp 669 ext/phar/util.c dest->fp = php_stream_fopen_tmpfile(); fp 670 ext/phar/util.c if (dest->fp == NULL) { fp 681 ext/phar/util.c if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(link, 0 TSRMLS_CC), dest->fp, link->uncompressed_filesize, NULL)) { fp 682 ext/phar/util.c php_stream_close(dest->fp); fp 717 ext/phar/util.c if (!entry->fp) { fp 718 ext/phar/util.c entry->fp = php_stream_open_wrapper(entry->tmp, "rb", STREAM_MUST_SEEK|0, NULL); fp 739 ext/phar/util.c dummy.fp = phar_get_pharfp(phar TSRMLS_CC); fp 757 ext/phar/util.c dummy.fp = phar_get_pharfp(phar TSRMLS_CC); fp 804 ext/phar/util.c dummy.fp = ufp; fp 816 ext/phar/util.c php_stream_truncate_set_size(entry->fp, 0); fp 842 ext/phar/util.c entry->fp = php_stream_fopen_tmpfile(); fp 844 ext/phar/util.c if (!entry->fp) { fp 867 ext/phar/util.c php_stream *fp; fp 878 ext/phar/util.c fp = php_stream_fopen_tmpfile(); fp 879 ext/phar/util.c if (fp == NULL) { fp 890 ext/phar/util.c if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(link, 0 TSRMLS_CC), fp, link->uncompressed_filesize, NULL)) { fp 904 ext/phar/util.c entry->fp = fp; fp 1407 ext/phar/util.c static int phar_call_openssl_signverify(int is_sign, php_stream *fp, off_t end, char *key, int key_len, char **signature, int *signature_len TSRMLS_DC) /* {{{ */ fp 1424 ext/phar/util.c php_stream_rewind(fp); fp 1428 ext/phar/util.c if (end != (off_t) php_stream_copy_to_mem(fp, &(Z_STRVAL_P(zdata)), (size_t) end, 0)) { fp 1520 ext/phar/util.c int phar_verify_signature(php_stream *fp, size_t end_of_phar, php_uint32 sig_type, char *sig, int sig_len, char *fname, char **signature, int *signature_len, char **error TSRMLS_DC) /* {{{ */ fp 1526 ext/phar/util.c php_stream_rewind(fp); fp 1572 ext/phar/util.c if (FAILURE == phar_call_openssl_signverify(0, fp, end_of_phar, pubkey, pubkey_len, &sig, &tempsig TSRMLS_CC)) { fp 1620 ext/phar/util.c php_stream_seek(fp, 0, SEEK_SET); fp 1622 ext/phar/util.c while (read_size && (len = php_stream_read(fp, (char*)buf, read_size)) > 0) { fp 1662 ext/phar/util.c while ((len = php_stream_read(fp, (char*)buf, read_size)) > 0) { fp 1695 ext/phar/util.c while ((len = php_stream_read(fp, (char*)buf, read_size)) > 0) { fp 1736 ext/phar/util.c while ((len = php_stream_read(fp, (char*)buf, read_size)) > 0) { fp 1769 ext/phar/util.c while ((len = php_stream_read(fp, (char*)buf, read_size)) > 0) { fp 1799 ext/phar/util.c int phar_create_signature(phar_archive_data *phar, php_stream *fp, char **signature, int *signature_length, char **error TSRMLS_DC) /* {{{ */ fp 1804 ext/phar/util.c php_stream_rewind(fp); fp 1819 ext/phar/util.c while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { fp 1834 ext/phar/util.c while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { fp 1892 ext/phar/util.c while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { fp 1915 ext/phar/util.c php_stream_seek(fp, 0, SEEK_END); fp 1917 ext/phar/util.c if (FAILURE == phar_call_openssl_signverify(1, fp, php_stream_tell(fp), PHAR_G(openssl_privatekey), PHAR_G(openssl_privatekey_len), (char **)&sigbuf, &siglen TSRMLS_CC)) { fp 1936 ext/phar/util.c while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { fp 1951 ext/phar/util.c while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { fp 42 ext/phar/zip.c static int phar_zip_process_extra(php_stream *fp, phar_entry_info *entry, php_uint16 len TSRMLS_DC) /* {{{ */ fp 51 ext/phar/zip.c if (sizeof(h.header) != php_stream_read(fp, (char *) &h.header, sizeof(h.header))) { fp 57 ext/phar/zip.c php_stream_seek(fp, PHAR_GET_16(h.header.size), SEEK_CUR); fp 63 ext/phar/zip.c read = php_stream_read(fp, (char *) &(h.unix3.crc32), sizeof(h.unix3) - sizeof(h.header)); fp 72 ext/phar/zip.c php_stream_seek(fp, PHAR_GET_16(h.unix3.size) - sizeof(h.unix3.size), SEEK_CUR); fp 166 ext/phar/zip.c int phar_parse_zipfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ */ fp 177 ext/phar/zip.c size = php_stream_tell(fp); fp 182 ext/phar/zip.c if (FAILURE == php_stream_seek(fp, -size, SEEK_END)) { fp 183 ext/phar/zip.c php_stream_close(fp); fp 190 ext/phar/zip.c php_stream_seek(fp, 0, SEEK_SET); fp 193 ext/phar/zip.c if (!php_stream_read(fp, buf, size)) { fp 194 ext/phar/zip.c php_stream_close(fp); fp 206 ext/phar/zip.c php_stream_close(fp); fp 217 ext/phar/zip.c php_stream_close(fp); fp 233 ext/phar/zip.c php_stream_close(fp); fp 262 ext/phar/zip.c php_stream_close(fp); fp 290 ext/phar/zip.c php_stream_seek(fp, PHAR_GET_32(locator.cdir_offset), SEEK_SET); fp 309 ext/phar/zip.c php_stream_close(fp); \ fp 333 ext/phar/zip.c php_stream_close(fp); \ fp 353 ext/phar/zip.c off_t beforeus = php_stream_tell(fp); fp 355 ext/phar/zip.c if (sizeof(zipentry) != php_stream_read(fp, (char *) &zipentry, sizeof(zipentry))) { fp 390 ext/phar/zip.c if (entry.filename_len != php_stream_read(fp, entry.filename, entry.filename_len)) { fp 413 ext/phar/zip.c now = php_stream_tell(fp); fp 420 ext/phar/zip.c php_stream_seek(fp, 0, SEEK_SET); fp 422 ext/phar/zip.c php_stream_copy_to_stream_ex(fp, sigfile, entry.header_offset, NULL); fp 424 ext/phar/zip.c php_stream_seek(fp, PHAR_GET_32(locator.cdir_offset), SEEK_SET); fp 426 ext/phar/zip.c php_stream_copy_to_stream_ex(fp, sigfile, beforeus - PHAR_GET_32(locator.cdir_offset), NULL); fp 430 ext/phar/zip.c php_stream_seek(fp, sizeof(phar_zip_file_header) + entry.header_offset + entry.filename_len + PHAR_GET_16(zipentry.extra_len), SEEK_SET); fp 432 ext/phar/zip.c read = php_stream_read(fp, sig, entry.uncompressed_filesize); fp 465 ext/phar/zip.c off_t loc = php_stream_tell(fp); fp 466 ext/phar/zip.c if (FAILURE == phar_zip_process_extra(fp, &entry, PHAR_GET_16(zipentry.extra_len) TSRMLS_CC)) { fp 470 ext/phar/zip.c php_stream_seek(fp, loc + PHAR_GET_16(zipentry.extra_len), SEEK_SET); fp 534 ext/phar/zip.c if (PHAR_GET_16(zipentry.comment_len) != php_stream_read(fp, buf, PHAR_GET_16(zipentry.comment_len))) { fp 566 ext/phar/zip.c saveloc = php_stream_tell(fp); fp 567 ext/phar/zip.c php_stream_seek(fp, PHAR_GET_32(zipentry.offset), SEEK_SET); fp 569 ext/phar/zip.c if (sizeof(local) != php_stream_read(fp, (char *) &local, sizeof(local))) { fp 583 ext/phar/zip.c php_stream_seek(fp, entry.offset, SEEK_SET); fp 585 ext/phar/zip.c fp->writepos = 0; fp 586 ext/phar/zip.c fp->readpos = 0; fp 587 ext/phar/zip.c php_stream_seek(fp, entry.offset, SEEK_SET); fp 588 ext/phar/zip.c fp->writepos = 0; fp 589 ext/phar/zip.c fp->readpos = 0; fp 595 ext/phar/zip.c filter = php_stream_filter_create("zlib.inflate", NULL, php_stream_is_persistent(fp) TSRMLS_CC); fp 602 ext/phar/zip.c php_stream_filter_append(&fp->readfilters, filter); fp 604 ext/phar/zip.c if (!(entry.uncompressed_filesize = php_stream_copy_to_mem(fp, &actual_alias, entry.uncompressed_filesize, 0)) || !actual_alias) { fp 613 ext/phar/zip.c filter = php_stream_filter_create("bzip2.decompress", NULL, php_stream_is_persistent(fp) TSRMLS_CC); fp 620 ext/phar/zip.c php_stream_filter_append(&fp->readfilters, filter); fp 622 ext/phar/zip.c if (!(entry.uncompressed_filesize = php_stream_copy_to_mem(fp, &actual_alias, entry.uncompressed_filesize, 0)) || !actual_alias) { fp 630 ext/phar/zip.c if (!(entry.uncompressed_filesize = php_stream_copy_to_mem(fp, &actual_alias, entry.uncompressed_filesize, 0)) || !actual_alias) { fp 637 ext/phar/zip.c php_stream_seek(fp, saveloc, SEEK_SET); fp 644 ext/phar/zip.c mydata->fp = fp; fp 837 ext/phar/zip.c if (entry->fp_type == PHAR_MOD && entry->fp != entry->phar->fp && entry->fp != entry->phar->ufp) { fp 838 ext/phar/zip.c php_stream_close(entry->fp); fp 839 ext/phar/zip.c entry->fp = NULL; fp 1035 ext/phar/zip.c if (entry->fp_type == PHAR_MOD && entry->fp != entry->phar->fp && entry->fp != entry->phar->ufp && entry->fp_refcount == 0) { fp 1036 ext/phar/zip.c php_stream_close(entry->fp); fp 1061 ext/phar/zip.c entry->fp = NULL; fp 1119 ext/phar/zip.c entry.fp = php_stream_fopen_tmpfile(); fp 1122 ext/phar/zip.c if (entry.fp == NULL) { fp 1130 ext/phar/zip.c if (8 != (int)php_stream_write(entry.fp, sigbuf, 8) || signature_length != (int)php_stream_write(entry.fp, signature, signature_length)) { fp 1195 ext/phar/zip.c entry.fp = php_stream_fopen_tmpfile(); fp 1196 ext/phar/zip.c if (entry.fp == NULL) { fp 1200 ext/phar/zip.c if (phar->alias_len != (int)php_stream_write(entry.fp, phar->alias, phar->alias_len)) { fp 1273 ext/phar/zip.c entry.fp = php_stream_fopen_tmpfile(); fp 1274 ext/phar/zip.c if (entry.fp == NULL) { fp 1280 ext/phar/zip.c if ((size_t)len != php_stream_write(entry.fp, user_stub, len) fp 1281 ext/phar/zip.c || 5 != php_stream_write(entry.fp, " ?>\r\n", 5)) { fp 1288 ext/phar/zip.c php_stream_close(entry.fp); fp 1310 ext/phar/zip.c entry.fp = php_stream_fopen_tmpfile(); fp 1311 ext/phar/zip.c if (entry.fp == NULL) { fp 1315 ext/phar/zip.c if (sizeof(newstub)-1 != php_stream_write(entry.fp, newstub, sizeof(newstub)-1)) { fp 1316 ext/phar/zip.c php_stream_close(entry.fp); fp 1330 ext/phar/zip.c php_stream_close(entry.fp); fp 1338 ext/phar/zip.c php_stream_close(entry.fp); fp 1343 ext/phar/zip.c php_stream_close(entry.fp); fp 1353 ext/phar/zip.c if (phar->fp && !phar->is_brandnew) { fp 1354 ext/phar/zip.c oldfile = phar->fp; fp 1476 ext/phar/zip.c if (phar->fp && pass.free_fp) { fp 1477 ext/phar/zip.c php_stream_close(phar->fp); fp 1492 ext/phar/zip.c phar->fp = pass.filefp; fp 1494 ext/phar/zip.c phar->fp = php_stream_open_wrapper(phar->fname, "w+b", IGNORE_URL|STREAM_MUST_SEEK|REPORT_ERRORS, NULL); fp 1495 ext/phar/zip.c if (!phar->fp) { fp 1499 ext/phar/zip.c phar->fp = pass.filefp; fp 1506 ext/phar/zip.c php_stream_copy_to_stream_ex(pass.filefp, phar->fp, PHP_STREAM_COPY_ALL, NULL); fp 1038 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1085 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1094 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1098 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1102 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1107 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1111 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1123 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1129 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1133 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1137 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1141 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1169 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1184 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1189 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1198 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1203 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1210 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1997 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 2097 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 2102 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 2107 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 264 ext/standard/browscap.c fh.handle.fp = VCWD_FOPEN(filename, "r"); fp 267 ext/standard/browscap.c if (!fh.handle.fp) { fp 105 ext/standard/exec.c FILE *fp; fp 120 ext/standard/exec.c fp = VCWD_POPEN(cmd, "rb"); fp 122 ext/standard/exec.c fp = VCWD_POPEN(cmd, "r"); fp 124 ext/standard/exec.c if (!fp) { fp 129 ext/standard/exec.c stream = php_stream_fopen_from_pipe(fp, "rb"); fp 929 ext/standard/file.c FILE *fp; fp 947 ext/standard/file.c fp = VCWD_POPEN(command, posix_mode); fp 948 ext/standard/file.c if (!fp) { fp 954 ext/standard/file.c stream = php_stream_fopen_from_pipe(fp, mode); fp 1507 ext/standard/file.c zval *fp; fp 1511 ext/standard/file.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &fp, &size) == FAILURE) { fp 1515 ext/standard/file.c PHP_STREAM_TO_ZVAL(stream, &fp); fp 1530 ext/standard/file.c zval *fp; fp 1540 ext/standard/file.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &fp) == FAILURE) { fp 1544 ext/standard/file.c PHP_STREAM_TO_ZVAL(stream, &fp); fp 1822 ext/standard/file.c zval *fp = NULL, *fields = NULL; fp 1828 ext/standard/file.c &fp, &fields, &delimiter_str, &delimiter_str_len, fp 1869 ext/standard/file.c PHP_STREAM_TO_ZVAL(stream, &fp); fp 87 ext/standard/iptc.c static int php_iptc_put1(FILE *fp, int spool, unsigned char c, unsigned char **spoolbuf TSRMLS_DC) fp 100 ext/standard/iptc.c static int php_iptc_get1(FILE *fp, int spool, unsigned char **spoolbuf TSRMLS_DC) fp 105 ext/standard/iptc.c c = getc(fp); fp 122 ext/standard/iptc.c static int php_iptc_read_remaining(FILE *fp, int spool, unsigned char **spoolbuf TSRMLS_DC) fp 124 ext/standard/iptc.c while (php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC) != EOF) continue; fp 132 ext/standard/iptc.c static int php_iptc_skip_variable(FILE *fp, int spool, unsigned char **spoolbuf TSRMLS_DC) fp 137 ext/standard/iptc.c if ((c1 = php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC)) == EOF) return M_EOI; fp 139 ext/standard/iptc.c if ((c2 = php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC)) == EOF) return M_EOI; fp 146 ext/standard/iptc.c if (php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC) == EOF) return M_EOI; fp 154 ext/standard/iptc.c static int php_iptc_next_marker(FILE *fp, int spool, unsigned char **spoolbuf TSRMLS_DC) fp 160 ext/standard/iptc.c c = php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC); fp 165 ext/standard/iptc.c if ((c = php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC)) == EOF) fp 171 ext/standard/iptc.c c = php_iptc_get1(fp, 0, 0 TSRMLS_CC); fp 176 ext/standard/iptc.c php_iptc_put1(fp, spool, (unsigned char)c, spoolbuf TSRMLS_CC); fp 192 ext/standard/iptc.c FILE *fp; fp 212 ext/standard/iptc.c if ((fp = VCWD_FOPEN(jpeg_file, "rb")) == 0) { fp 218 ext/standard/iptc.c fstat(fileno(fp), &sb); fp 224 ext/standard/iptc.c if (php_iptc_get1(fp, spool, poi?&poi:0 TSRMLS_CC) != 0xFF) { fp 225 ext/standard/iptc.c fclose(fp); fp 232 ext/standard/iptc.c if (php_iptc_get1(fp, spool, poi?&poi:0 TSRMLS_CC) != 0xD8) { fp 233 ext/standard/iptc.c fclose(fp); fp 241 ext/standard/iptc.c marker = php_iptc_next_marker(fp, spool, poi?&poi:0 TSRMLS_CC); fp 246 ext/standard/iptc.c php_iptc_put1(fp, spool, (unsigned char)marker, poi?&poi:0 TSRMLS_CC); fp 252 ext/standard/iptc.c php_iptc_skip_variable(fp, 0, 0 TSRMLS_CC); fp 253 ext/standard/iptc.c fgetc(fp); /* skip already copied 0xFF byte */ fp 254 ext/standard/iptc.c php_iptc_read_remaining(fp, spool, poi?&poi:0 TSRMLS_CC); fp 267 ext/standard/iptc.c php_iptc_skip_variable(fp, spool, poi?&poi:0 TSRMLS_CC); fp 277 ext/standard/iptc.c php_iptc_put1(fp, spool, psheader[inx], poi?&poi:0 TSRMLS_CC); fp 280 ext/standard/iptc.c php_iptc_put1(fp, spool, (unsigned char)(iptcdata_len>>8), poi?&poi:0 TSRMLS_CC); fp 281 ext/standard/iptc.c php_iptc_put1(fp, spool, (unsigned char)(iptcdata_len&0xff), poi?&poi:0 TSRMLS_CC); fp 284 ext/standard/iptc.c php_iptc_put1(fp, spool, iptcdata[inx], poi?&poi:0 TSRMLS_CC); fp 290 ext/standard/iptc.c php_iptc_read_remaining(fp, spool, poi?&poi:0 TSRMLS_CC); fp 295 ext/standard/iptc.c php_iptc_skip_variable(fp, spool, poi?&poi:0 TSRMLS_CC); fp 300 ext/standard/iptc.c fclose(fp); fp 132 ext/zip/lib/zip_dirent.c _zip_cdir_write(struct zip *za, const struct zip_filelist *filelist, zip_uint64_t survivors, FILE *fp) fp 141 ext/zip/lib/zip_dirent.c if ((off=ftello(fp)) < 0) { fp 152 ext/zip/lib/zip_dirent.c if ((ret=_zip_dirent_write(entry->changes ? entry->changes : entry->orig, fp, ZIP_FL_CENTRAL, &za->error)) < 0) fp 158 ext/zip/lib/zip_dirent.c if ((off=ftello(fp)) < 0) { fp 168 ext/zip/lib/zip_dirent.c fwrite(EOCD64_MAGIC, 1, 4, fp); fp 169 ext/zip/lib/zip_dirent.c _zip_write8(EOCD64LEN-12, fp); fp 170 ext/zip/lib/zip_dirent.c _zip_write2(45, fp); fp 171 ext/zip/lib/zip_dirent.c _zip_write2(45, fp); fp 172 ext/zip/lib/zip_dirent.c _zip_write4(0, fp); fp 173 ext/zip/lib/zip_dirent.c _zip_write4(0, fp); fp 174 ext/zip/lib/zip_dirent.c _zip_write8(survivors, fp); fp 175 ext/zip/lib/zip_dirent.c _zip_write8(survivors, fp); fp 176 ext/zip/lib/zip_dirent.c _zip_write8(size, fp); fp 177 ext/zip/lib/zip_dirent.c _zip_write8(offset, fp); fp 179 ext/zip/lib/zip_dirent.c fwrite(EOCD64LOC_MAGIC, 1, 4, fp); fp 180 ext/zip/lib/zip_dirent.c _zip_write4(0, fp); fp 181 ext/zip/lib/zip_dirent.c _zip_write8(offset+size, fp); fp 182 ext/zip/lib/zip_dirent.c _zip_write4(1, fp); fp 187 ext/zip/lib/zip_dirent.c fwrite(EOCD_MAGIC, 1, 4, fp); fp 188 ext/zip/lib/zip_dirent.c _zip_write4(0, fp); fp 189 ext/zip/lib/zip_dirent.c _zip_write2(survivors >= ZIP_UINT16_MAX ? ZIP_UINT16_MAX : (zip_uint16_t)survivors, fp); fp 190 ext/zip/lib/zip_dirent.c _zip_write2(survivors >= ZIP_UINT16_MAX ? ZIP_UINT16_MAX : (zip_uint16_t)survivors, fp); fp 191 ext/zip/lib/zip_dirent.c _zip_write4(size >= ZIP_UINT32_MAX ? ZIP_UINT32_MAX : (zip_uint32_t)size, fp); fp 192 ext/zip/lib/zip_dirent.c _zip_write4(offset >= ZIP_UINT32_MAX ? ZIP_UINT32_MAX : (zip_uint32_t)offset, fp); fp 196 ext/zip/lib/zip_dirent.c _zip_write2(comment ? comment->length : 0, fp); fp 198 ext/zip/lib/zip_dirent.c fwrite(comment->raw, 1, comment->length, fp); fp 200 ext/zip/lib/zip_dirent.c if (ferror(fp)) { fp 327 ext/zip/lib/zip_dirent.c _zip_dirent_read(struct zip_dirent *zde, FILE *fp, fp 353 ext/zip/lib/zip_dirent.c if ((fread(buf, 1, size, fp)<size)) { fp 416 ext/zip/lib/zip_dirent.c zde->filename = _zip_read_string(bufp ? &cur : NULL, fp, filename_len, 1, error); fp 429 ext/zip/lib/zip_dirent.c zip_uint8_t *ef = _zip_read_data(bufp ? &cur : NULL, fp, ef_len, 0, error); fp 443 ext/zip/lib/zip_dirent.c zde->comment = _zip_read_string(bufp ? &cur : NULL, fp, comment_len, 0, error); fp 636 ext/zip/lib/zip_dirent.c _zip_dirent_write(struct zip_dirent *de, FILE *fp, zip_flags_t flags, struct zip_error *error) fp 649 ext/zip/lib/zip_dirent.c fwrite((flags & ZIP_FL_LOCAL) ? LOCAL_MAGIC : CENTRAL_MAGIC, 1, 4, fp); fp 707 ext/zip/lib/zip_dirent.c _zip_write2(is_really_zip64 ? 45 : de->version_madeby, fp); fp 708 ext/zip/lib/zip_dirent.c _zip_write2(is_really_zip64 ? 45 : de->version_needed, fp); fp 709 ext/zip/lib/zip_dirent.c _zip_write2(de->bitflags&0xfff9, fp); /* clear compression method specific flags */ fp 710 ext/zip/lib/zip_dirent.c _zip_write2((zip_uint16_t)de->comp_method, fp); /* TODO: can it be ZIP_CM_DEFAULT? */ fp 713 ext/zip/lib/zip_dirent.c _zip_write2(dostime, fp); fp 714 ext/zip/lib/zip_dirent.c _zip_write2(dosdate, fp); fp 716 ext/zip/lib/zip_dirent.c _zip_write4(de->crc, fp); fp 718 ext/zip/lib/zip_dirent.c _zip_write4((zip_uint32_t)de->comp_size, fp); fp 720 ext/zip/lib/zip_dirent.c _zip_write4(ZIP_UINT32_MAX, fp); fp 722 ext/zip/lib/zip_dirent.c _zip_write4((zip_uint32_t)de->uncomp_size, fp); fp 724 ext/zip/lib/zip_dirent.c _zip_write4(ZIP_UINT32_MAX, fp); fp 726 ext/zip/lib/zip_dirent.c _zip_write2(_zip_string_length(de->filename), fp); fp 727 ext/zip/lib/zip_dirent.c _zip_write2(_zip_ef_size(de->extra_fields, flags) + _zip_ef_size(ef, ZIP_EF_BOTH), fp); fp 730 ext/zip/lib/zip_dirent.c _zip_write2(_zip_string_length(de->comment), fp); fp 731 ext/zip/lib/zip_dirent.c _zip_write2((zip_uint16_t)de->disk_number, fp); fp 732 ext/zip/lib/zip_dirent.c _zip_write2(de->int_attrib, fp); fp 733 ext/zip/lib/zip_dirent.c _zip_write4(de->ext_attrib, fp); fp 735 ext/zip/lib/zip_dirent.c _zip_write4((zip_uint32_t)de->offset, fp); fp 737 ext/zip/lib/zip_dirent.c _zip_write4(ZIP_UINT32_MAX, fp); fp 741 ext/zip/lib/zip_dirent.c _zip_string_write(de->filename, fp); fp 744 ext/zip/lib/zip_dirent.c _zip_ef_write(ef, ZIP_EF_BOTH, fp); fp 746 ext/zip/lib/zip_dirent.c _zip_ef_write(de->extra_fields, flags, fp); fp 750 ext/zip/lib/zip_dirent.c _zip_string_write(de->comment, fp); fp 755 ext/zip/lib/zip_dirent.c if (ferror(fp)) { fp 890 ext/zip/lib/zip_dirent.c _zip_read_data(const zip_uint8_t **buf, FILE *fp, size_t len, int nulp, struct zip_error *error) fp 908 ext/zip/lib/zip_dirent.c if (fread(r, 1, len, fp)<len) { fp 910 ext/zip/lib/zip_dirent.c if (ferror(fp)) fp 933 ext/zip/lib/zip_dirent.c _zip_read_string(const zip_uint8_t **buf, FILE *fp, zip_uint16_t len, int nulp, struct zip_error *error) fp 938 ext/zip/lib/zip_dirent.c if ((raw=_zip_read_data(buf, fp, len, nulp, error)) == NULL) fp 975 ext/zip/lib/zip_dirent.c _zip_write2(zip_uint16_t i, FILE *fp) fp 977 ext/zip/lib/zip_dirent.c putc(i&0xff, fp); fp 978 ext/zip/lib/zip_dirent.c putc((i>>8)&0xff, fp); fp 986 ext/zip/lib/zip_dirent.c _zip_write4(zip_uint32_t i, FILE *fp) fp 988 ext/zip/lib/zip_dirent.c putc(i&0xff, fp); fp 989 ext/zip/lib/zip_dirent.c putc((i>>8)&0xff, fp); fp 990 ext/zip/lib/zip_dirent.c putc((i>>16)&0xff, fp); fp 991 ext/zip/lib/zip_dirent.c putc((i>>24)&0xff, fp); fp 999 ext/zip/lib/zip_dirent.c _zip_write8(zip_uint64_t i, FILE *fp) fp 1001 ext/zip/lib/zip_dirent.c putc(i&0xff, fp); fp 1002 ext/zip/lib/zip_dirent.c putc((i>>8)&0xff, fp); fp 1003 ext/zip/lib/zip_dirent.c putc((i>>16)&0xff, fp); fp 1004 ext/zip/lib/zip_dirent.c putc((i>>24)&0xff, fp); fp 1005 ext/zip/lib/zip_dirent.c putc((i>>32)&0xff, fp); fp 1006 ext/zip/lib/zip_dirent.c putc((i>>40)&0xff, fp); fp 1007 ext/zip/lib/zip_dirent.c putc((i>>48)&0xff, fp); fp 1008 ext/zip/lib/zip_dirent.c putc((i>>56)&0xff, fp); fp 44 ext/zip/lib/zip_fdopen.c FILE *fp; fp 67 ext/zip/lib/zip_fdopen.c if ((fp=fdopen(fd, "rb")) == NULL) { fp 74 ext/zip/lib/zip_fdopen.c return _zip_open(NULL, fp, flags, zep); fp 45 ext/zip/lib/zip_filerange_crc.c _zip_filerange_crc(FILE *fp, off_t start, off_t len, uLong *crcp, fp 53 ext/zip/lib/zip_filerange_crc.c if (fseeko(fp, start, SEEK_SET) != 0) { fp 60 ext/zip/lib/zip_filerange_crc.c if ((n=fread(buf, 1, n, fp)) == 0) { fp 66 ext/zip/lib/zip_open.c FILE *fp; fp 95 ext/zip/lib/zip_open.c if ((fp=fopen(fn, "rb")) == NULL) { fp 100 ext/zip/lib/zip_open.c return _zip_open(fn, fp, flags, zep); fp 126 ext/zip/lib/zip_open.c _zip_open(const char *fn, FILE *fp, unsigned int flags, int *zep) fp 132 ext/zip/lib/zip_open.c if (fseeko(fp, 0, SEEK_END) < 0) { fp 136 ext/zip/lib/zip_open.c len = ftello(fp); fp 141 ext/zip/lib/zip_open.c fclose(fp); fp 143 ext/zip/lib/zip_open.c za->zp = fp; fp 147 ext/zip/lib/zip_open.c cdir = _zip_find_central_dir(fp, flags, zep, len); fp 149 ext/zip/lib/zip_open.c fclose(fp); fp 155 ext/zip/lib/zip_open.c fclose(fp); fp 164 ext/zip/lib/zip_open.c za->zp = fp; fp 201 ext/zip/lib/zip_open.c _zip_readcdir(FILE *fp, off_t buf_offset, unsigned char *buf, const unsigned char *eocd, size_t buflen, fp 229 ext/zip/lib/zip_open.c cd = _zip_read_eocd64(fp, eocd-EOCD64LOCLEN, buf, buf_offset, buflen, flags, error); fp 267 ext/zip/lib/zip_open.c clearerr(fp); fp 268 ext/zip/lib/zip_open.c fseeko(fp, cd->offset, SEEK_SET); fp 271 ext/zip/lib/zip_open.c if (ferror(fp) || (ftello(fp) != cd->offset)) { fp 273 ext/zip/lib/zip_open.c if (ferror(fp)) fp 286 ext/zip/lib/zip_open.c || (_zip_dirent_read(cd->entry[i].orig, fp, bufp, &left, 0, error)) < 0) { fp 310 ext/zip/lib/zip_open.c _zip_checkcons(FILE *fp, struct zip_cdir *cd, struct zip_error *error) fp 340 ext/zip/lib/zip_open.c if (fseeko(fp, (off_t)cd->entry[i].orig->offset, SEEK_SET) != 0) { fp 345 ext/zip/lib/zip_open.c if (_zip_dirent_read(&temp, fp, NULL, NULL, 1, error) == -1) fp 491 ext/zip/lib/zip_open.c _zip_find_central_dir(FILE *fp, unsigned int flags, int *zep, off_t len) fp 506 ext/zip/lib/zip_open.c i = fseeko(fp, -(len < CDBUFSIZE ? len : CDBUFSIZE), SEEK_END); fp 512 ext/zip/lib/zip_open.c buf_offset = ftello(fp); fp 520 ext/zip/lib/zip_open.c clearerr(fp); fp 521 ext/zip/lib/zip_open.c buflen = fread(buf, 1, CDBUFSIZE, fp); fp 523 ext/zip/lib/zip_open.c if (ferror(fp)) { fp 539 ext/zip/lib/zip_open.c if ((cdirnew=_zip_readcdir(fp, buf_offset, buf, match-1, buflen, flags, fp 545 ext/zip/lib/zip_open.c best = _zip_checkcons(fp, cdir, &zerr); fp 546 ext/zip/lib/zip_open.c a = _zip_checkcons(fp, cdirnew, &zerr); fp 558 ext/zip/lib/zip_open.c best = _zip_checkcons(fp, cdir, &zerr); fp 814 ext/zlib/zlib.c ZEND_ARG_INFO(0, fp) fp 820 ext/zlib/zlib.c ZEND_ARG_INFO(0, fp) fp 824 ext/zlib/zlib.c ZEND_ARG_INFO(0, fp) fp 830 ext/zlib/zlib.c ZEND_ARG_INFO(0, fp) fp 835 ext/zlib/zlib.c ZEND_ARG_INFO(0, fp) fp 841 ext/zlib/zlib.c ZEND_ARG_INFO(0, fp) fp 344 main/fopen_wrappers.c FILE *fp; fp 349 main/fopen_wrappers.c fp = VCWD_FOPEN(path, mode); fp 350 main/fopen_wrappers.c if (fp && opened_path) { fp 353 main/fopen_wrappers.c return fp; fp 616 main/fopen_wrappers.c FILE *fp; fp 675 main/fopen_wrappers.c fp = php_fopen_and_set_opened_path(trypath, mode, opened_path TSRMLS_CC); fp 676 main/fopen_wrappers.c if (fp) { fp 678 main/fopen_wrappers.c return fp; fp 557 main/php_ini.c fh.handle.fp = VCWD_FOPEN(php_ini_file_name, "r"); fp 558 main/php_ini.c if (fh.handle.fp) { fp 566 main/php_ini.c if (!fh.handle.fp) { fp 570 main/php_ini.c fh.handle.fp = php_fopen_with_path(ini_fname, "r", php_ini_search_path, &php_ini_opened_path TSRMLS_CC); fp 572 main/php_ini.c if (fh.handle.fp) { fp 578 main/php_ini.c if (!fh.handle.fp) { fp 579 main/php_ini.c fh.handle.fp = php_fopen_with_path("php.ini", "r", php_ini_search_path, &php_ini_opened_path TSRMLS_CC); fp 580 main/php_ini.c if (fh.handle.fp) { fp 592 main/php_ini.c if (fh.handle.fp) { fp 671 main/php_ini.c if ((fh2.handle.fp = VCWD_FOPEN(ini_file, "r"))) { fp 765 main/php_ini.c if ((fh.handle.fp = VCWD_FOPEN(ini_file, "r"))) { fp 314 main/php_open_temporary_file.c FILE *fp; fp 321 main/php_open_temporary_file.c fp = fdopen(fd, "r+b"); fp 322 main/php_open_temporary_file.c if (fp == NULL) { fp 326 main/php_open_temporary_file.c return fp; fp 356 main/streams/cast.c FILE *fp = NULL; fp 365 main/streams/cast.c if (php_stream_cast(stream, PHP_STREAM_AS_STDIO|PHP_STREAM_CAST_TRY_HARD|PHP_STREAM_CAST_RELEASE, (void**)&fp, REPORT_ERRORS) == FAILURE) { fp 372 main/streams/cast.c return fp; fp 2323 sapi/cgi/cgi_main.c file_handle.handle.fp = NULL; fp 2327 sapi/cgi/cgi_main.c file_handle.handle.fp = stdin; fp 2398 sapi/cgi/cgi_main.c file_handle.handle.fp = fdopen(file_handle.handle.fd, "rb"); fp 2401 sapi/cgi/cgi_main.c if (!file_handle.handle.fp || fp 2402 sapi/cgi/cgi_main.c (file_handle.handle.fp == stdin)) { fp 2405 sapi/cgi/cgi_main.c c = fgetc(file_handle.handle.fp); fp 2408 sapi/cgi/cgi_main.c c = fgetc(file_handle.handle.fp); /* skip to end of line */ fp 2412 sapi/cgi/cgi_main.c if (fgetc(file_handle.handle.fp) != '\n') { fp 2413 sapi/cgi/cgi_main.c long pos = ftell(file_handle.handle.fp); fp 2414 sapi/cgi/cgi_main.c fseek(file_handle.handle.fp, pos - 1, SEEK_SET); fp 2419 sapi/cgi/cgi_main.c rewind(file_handle.handle.fp); fp 631 sapi/cli/php_cli.c if (!(file_handle->handle.fp = VCWD_FOPEN(script_file, "rb"))) { fp 638 sapi/cli/php_cli.c c = fgetc(file_handle->handle.fp); fp 639 sapi/cli/php_cli.c if (c == '#' && (c = fgetc(file_handle->handle.fp)) == '!') { fp 641 sapi/cli/php_cli.c c = fgetc(file_handle->handle.fp); /* skip to end of line */ fp 645 sapi/cli/php_cli.c if (fgetc(file_handle->handle.fp) != '\n') { fp 646 sapi/cli/php_cli.c long pos = ftell(file_handle->handle.fp); fp 647 sapi/cli/php_cli.c fseek(file_handle->handle.fp, pos - 1, SEEK_SET); fp 652 sapi/cli/php_cli.c rewind(file_handle->handle.fp); fp 949 sapi/cli/php_cli.c file_handle.handle.fp = stdin; fp 967 sapi/cli/php_cli.c fclose(file_handle.handle.fp); fp 2039 sapi/cli/php_cli_server.c zfd.handle.fp = NULL; fp 2163 sapi/cli/php_cli_server.c zfd.handle.fp = NULL; fp 549 sapi/litespeed/lsapi_main.c FILE * fp; fp 551 sapi/litespeed/lsapi_main.c fp = fopen( SG(request_info).path_translated, "rb" ); fp 552 sapi/litespeed/lsapi_main.c if ( !fp ) fp 557 sapi/litespeed/lsapi_main.c file_handle->handle.fp = fp; fp 880 sapi/litespeed/lsapi_main.c file_handle.handle.fp = VCWD_FOPEN(*p, "rb"); fp 882 sapi/litespeed/lsapi_main.c if ( file_handle.handle.fp ) { fp 891 sapi/litespeed/lsapi_main.c fclose( file_handle.handle.fp ); fp 2493 sapi/litespeed/lsapilib.c int LSAPI_Init_Prefork_Server( int max_children, fn_select_t fp, int avoidFork ) fp 2509 sapi/litespeed/lsapilib.c if ( fp != NULL ) fp 2510 sapi/litespeed/lsapilib.c g_fnSelect = fp; fp 3208 sapi/litespeed/lsapilib.c int LSAPI_Init_Env_Parameters( fn_select_t fp ) fp 3279 sapi/litespeed/lsapilib.c LSAPI_Init_Prefork_Server( n, fp, avoidFork ); fp 358 sapi/litespeed/lsapilib.h int LSAPI_Init_Prefork_Server( int max_children, fn_select_t fp, int avoidFork ); fp 376 sapi/litespeed/lsapilib.h int LSAPI_Init_Env_Parameters( fn_select_t fp ); fp 136 sapi/milter/php_milter.c if (!(file_handle.handle.fp = VCWD_FOPEN(filename, "rb"))) { fp 202 sapi/milter/php_milter.c if (!(file_handle.handle.fp = VCWD_FOPEN(filename, "rb"))) { fp 194 sapi/phpdbg/phpdbg_prompt.c FILE *fp = fopen(init_file, "r"); fp 195 sapi/phpdbg/phpdbg_prompt.c if (fp) { fp 204 sapi/phpdbg/phpdbg_prompt.c while (fgets(cmd, PHPDBG_MAX_CMD, fp) != NULL) { fp 283 sapi/phpdbg/phpdbg_prompt.c fclose(fp); fp 227 sapi/phpdbg/phpdbg_utils.c PHPDBG_API int phpdbg_print(int type TSRMLS_DC, FILE *fp, const char *format, ...) /* {{{ */ fp 244 sapi/phpdbg/phpdbg_utils.c rc = fprintf(fp, fp 248 sapi/phpdbg/phpdbg_utils.c rc = fprintf(fp, "[%s]\n", buffer); fp 254 sapi/phpdbg/phpdbg_utils.c rc = fprintf(fp, fp 258 sapi/phpdbg/phpdbg_utils.c rc = fprintf(fp, "[%s]\n", buffer); fp 264 sapi/phpdbg/phpdbg_utils.c rc = fprintf(fp, "%s\n", buffer); fp 266 sapi/phpdbg/phpdbg_utils.c rc = fprintf(fp, "\n"); fp 272 sapi/phpdbg/phpdbg_utils.c rc = fprintf(fp, "%s", buffer); fp 281 sapi/phpdbg/phpdbg_utils.c rc = fprintf(fp, "[%ld %.8F]: %s\n", tp.tv_sec, tp.tv_usec / 1000000.00, buffer); fp 296 sapi/phpdbg/phpdbg_utils.c PHPDBG_API int phpdbg_rlog(FILE *fp, const char *fmt, ...) { /* {{{ */ fp 314 sapi/phpdbg/phpdbg_utils.c fp, format, args); fp 169 sapi/webjames/webjames.c FILE *fp=NULL;