fp 504 Zend/zend_language_scanner.c if (CG(start_lineno) == 2 && file_handle->type == ZEND_HANDLE_FP && file_handle->handle.fp) { fp 505 Zend/zend_language_scanner.c if ((offset = ftell(file_handle->handle.fp)) == -1) { fp 647 Zend/zend_language_scanner.c file_handle.handle.fp = NULL; fp 116 Zend/zend_stream.c if (file_handle->handle.fp && zend_fstat(fileno(file_handle->handle.fp), &buf) == 0) { fp 135 Zend/zend_stream.c handle->handle.fp = zend_fopen(filename, &handle->opened_path); fp 140 Zend/zend_stream.c return (handle->handle.fp) ? SUCCESS : FAILURE; fp 194 Zend/zend_stream.c file_handle->handle.fp = fdopen(file_handle->handle.fd, "rb"); fp 197 Zend/zend_stream.c if (!file_handle->handle.fp) { fp 233 Zend/zend_stream.c if (file_handle->handle.fp && fp 237 Zend/zend_stream.c *buf = mmap(0, size + ZEND_MMAP_AHEAD, PROT_READ, MAP_PRIVATE, fileno(file_handle->handle.fp), 0); fp 239 Zend/zend_stream.c zend_long offset = ftell(file_handle->handle.fp); fp 309 Zend/zend_stream.c fclose(fh->handle.fp); fp 344 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 253 ext/curl/interface.c ch->handlers->read->fp = 0; fp 266 ext/curl/interface.c ch->handlers->write_header->fp = 0; fp 280 ext/curl/interface.c ch->handlers->write->fp = 0; fp 1324 ext/curl/interface.c return fwrite(data, size, nmemb, t->fp); fp 1491 ext/curl/interface.c if (t->fp) { fp 1492 ext/curl/interface.c length = fread(data, size, nmemb, t->fp); fp 1568 ext/curl/interface.c return fwrite(data, size, nmemb, t->fp); fp 1961 ext/curl/interface.c dupch->handlers->write->fp = ch->handlers->write->fp; fp 1962 ext/curl/interface.c dupch->handlers->write_header->fp = ch->handlers->write_header->fp; fp 1963 ext/curl/interface.c dupch->handlers->read->fp = ch->handlers->read->fp; fp 2323 ext/curl/interface.c FILE *fp = NULL; fp 2332 ext/curl/interface.c if (FAILURE == php_stream_cast(what, PHP_STREAM_AS_STDIO, (void *) &fp, REPORT_ERRORS)) { fp 2336 ext/curl/interface.c if (!fp) { fp 2349 ext/curl/interface.c ch->handlers->write->fp = NULL; fp 2353 ext/curl/interface.c ch->handlers->write->fp = fp; fp 2367 ext/curl/interface.c ch->handlers->write_header->fp = NULL; fp 2371 ext/curl/interface.c ch->handlers->write_header->fp = fp; fp 2385 ext/curl/interface.c ch->handlers->read->fp = NULL; fp 2389 ext/curl/interface.c ch->handlers->read->fp = fp; fp 2409 ext/curl/interface.c error = curl_easy_setopt(ch->cp, option, fp); fp 2902 ext/curl/interface.c if (ch->handlers->write->method == PHP_CURL_FILE && ch->handlers->write->fp) { fp 2903 ext/curl/interface.c fflush(ch->handlers->write->fp); fp 2905 ext/curl/interface.c if (ch->handlers->write_header->method == PHP_CURL_FILE && ch->handlers->write_header->fp) { fp 2906 ext/curl/interface.c fflush(ch->handlers->write_header->fp); fp 3307 ext/curl/interface.c ch->handlers->write->fp = NULL; fp 3314 ext/curl/interface.c ch->handlers->write_header->fp = NULL; fp 3321 ext/curl/interface.c ch->handlers->read->fp = NULL; fp 126 ext/curl/php_curl.h FILE *fp; fp 135 ext/curl/php_curl.h FILE *fp; fp 428 ext/dba/dba.c if (info->fp && info->fp != info->lock.fp) { fp 430 ext/dba/dba.c php_stream_pclose(info->fp); fp 432 ext/dba/dba.c php_stream_close(info->fp); fp 435 ext/dba/dba.c if (info->lock.fp) { fp 437 ext/dba/dba.c php_stream_pclose(info->lock.fp); fp 439 ext/dba/dba.c php_stream_close(info->lock.fp); fp 865 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 867 ext/dba/dba.c if (!info->lock.fp) { fp 877 ext/dba/dba.c if (!info->lock.fp) { fp 878 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 879 ext/dba/dba.c if (info->lock.fp) { fp 893 ext/dba/dba.c if (!info->lock.fp) { fp 899 ext/dba/dba.c if (!php_stream_supports_lock(info->lock.fp)) { fp 902 ext/dba/dba.c if (php_stream_lock(info->lock.fp, lock_mode)) { fp 909 ext/dba/dba.c if (info->lock.fp && lock_dbf) { fp 910 ext/dba/dba.c info->fp = info->lock.fp; /* use the same stream for locking and database access */ fp 912 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 914 ext/dba/dba.c if (!info->fp) { fp 924 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) { 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); fp 95 ext/dba/libcdb/cdb.c void cdb_init(struct cdb *c, php_stream *fp) 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); 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, "%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, "%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, "%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, "%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) 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)) == 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 (SUCCESS != 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 430 ext/dba/libinifile/inifile.c pos_curr = php_stream_tell(from->fp); fp 432 ext/dba/libinifile/inifile.c php_stream_seek(from->fp, pos_start, SEEK_SET); fp 433 ext/dba/libinifile/inifile.c if (SUCCESS != php_stream_copy_to_stream_ex(from->fp, dba->fp, pos_next - pos_start, NULL)) { fp 437 ext/dba/libinifile/inifile.c php_stream_seek(from->fp, pos_curr, SEEK_SET); fp 442 ext/dba/libinifile/inifile.c pos_next = php_stream_tell(from->fp); fp 451 ext/dba/libinifile/inifile.c php_stream_seek(from->fp, pos_start, SEEK_SET); fp 452 ext/dba/libinifile/inifile.c if (SUCCESS != php_stream_copy_to_stream_ex(from->fp, dba->fp, pos_next - pos_start, NULL)) { fp 500 ext/dba/libinifile/inifile.c php_stream_seek(dba->fp, 0, SEEK_END); fp 501 ext/dba/libinifile/inifile.c if (pos_grp_next != (size_t)php_stream_tell(dba->fp)) { fp 502 ext/dba/libinifile/inifile.c php_stream_seek(dba->fp, pos_grp_next, SEEK_SET); fp 503 ext/dba/libinifile/inifile.c if (SUCCESS != php_stream_copy_to_stream_ex(dba->fp, fp_tmp, PHP_STREAM_COPY_ALL, NULL)) { fp 531 ext/dba/libinifile/inifile.c php_stream_printf(dba->fp, "[%s]\n", key->group); fp 533 ext/dba/libinifile/inifile.c php_stream_printf(dba->fp, "%s=%s\n", key->name, value->value ? value->value : ""); fp 543 ext/dba/libinifile/inifile.c php_stream_seek(dba->fp, 0, SEEK_END); fp 544 ext/dba/libinifile/inifile.c if (SUCCESS != php_stream_copy_to_stream_ex(fp_tmp, dba->fp, PHP_STREAM_COPY_ALL, NULL)) { fp 552 ext/dba/libinifile/inifile.c php_stream_close(ini_tmp->fp); fp 558 ext/dba/libinifile/inifile.c php_stream_flush(dba->fp); fp 559 ext/dba/libinifile/inifile.c php_stream_seek(dba->fp, 0, SEEK_SET); fp 42 ext/dba/libinifile/inifile.h php_stream *fp; fp 65 ext/dba/libinifile/inifile.h inifile * inifile_alloc(php_stream *fp, int readonly, int persistent); fp 38 ext/dba/php_dba.h php_stream *fp; fp 48 ext/dba/php_dba.h php_stream *fp; /* this is the database stream for builtin handlers */ fp 2692 ext/fileinfo/libmagic/apprentice.c file_showstr(FILE *fp, const char *s, size_t len) fp 2708 ext/fileinfo/libmagic/apprentice.c (void) fputc(c, fp); fp 2710 ext/fileinfo/libmagic/apprentice.c (void) fputc('\\', fp); fp 2713 ext/fileinfo/libmagic/apprentice.c (void) fputc('a', fp); fp 2717 ext/fileinfo/libmagic/apprentice.c (void) fputc('b', fp); fp 2721 ext/fileinfo/libmagic/apprentice.c (void) fputc('f', fp); fp 2725 ext/fileinfo/libmagic/apprentice.c (void) fputc('n', fp); fp 2729 ext/fileinfo/libmagic/apprentice.c (void) fputc('r', fp); fp 2733 ext/fileinfo/libmagic/apprentice.c (void) fputc('t', fp); fp 2737 ext/fileinfo/libmagic/apprentice.c (void) fputc('v', fp); fp 2741 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 1008 ext/gd/gd.c gdFontPtr fp = (gdFontPtr) rsrc->ptr; fp 1010 ext/gd/gd.c if (fp->data) { fp 1011 ext/gd/gd.c efree(fp->data); fp 1014 ext/gd/gd.c efree(fp); fp 2297 ext/gd/gd.c FILE * fp = NULL; fp 2324 ext/gd/gd.c if (FAILURE == php_stream_cast(stream, PHP_STREAM_AS_STDIO, (void**)&fp, REPORT_ERRORS)) { fp 2361 ext/gd/gd.c if (FAILURE == php_stream_cast(stream, PHP_STREAM_AS_STDIO | PHP_STREAM_CAST_TRY_HARD, (void **) &fp, REPORT_ERRORS)) { fp 2366 ext/gd/gd.c if (!im && fp) { fp 2369 ext/gd/gd.c im = (*func_p)(fp, srcx, srcy, width, height); fp 2380 ext/gd/gd.c im = gdImageCreateFromJpegEx(fp, ignore_warning); fp 2385 ext/gd/gd.c im = (*func_p)(fp); fp 2389 ext/gd/gd.c fflush(fp); fp 2504 ext/gd/gd.c FILE *fp; fp 2534 ext/gd/gd.c fp = VCWD_FOPEN(fn, "wb"); fp 2535 ext/gd/gd.c if (!fp) { fp 2548 ext/gd/gd.c gdImageWBMP(im, q, fp); fp 2551 ext/gd/gd.c (*func_p)(im, fp, q); fp 2557 ext/gd/gd.c (*func_p)(im, i, fp); fp 2563 ext/gd/gd.c (*func_p)(im, fp); fp 2569 ext/gd/gd.c (*func_p)(im, fp, q, t); fp 2575 ext/gd/gd.c (*func_p)(im, fp, q, t); fp 2578 ext/gd/gd.c fflush(fp); fp 2579 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 711 ext/oci8/oci8_lob.c int fp; fp 728 ext/oci8/oci8_lob.c if ((fp = VCWD_OPEN(filename, O_RDONLY|O_BINARY)) == -1) { fp 733 ext/oci8/oci8_lob.c while ((loblen = read(fp, &buf, sizeof(buf))) > 0) { fp 755 ext/oci8/oci8_lob.c close(fp); fp 762 ext/oci8/oci8_lob.c close(fp); fp 1292 ext/odbc/php_odbc.c int fp; fp 1327 ext/odbc/php_odbc.c params[i].fp = -1; fp 1335 ext/odbc/php_odbc.c if (params[i].fp != -1) { fp 1336 ext/odbc/php_odbc.c close(params[i].fp); fp 1349 ext/odbc/php_odbc.c if (params[i].fp != -1) { fp 1350 ext/odbc/php_odbc.c close(params[i].fp); fp 1358 ext/odbc/php_odbc.c params[i-1].fp = -1; fp 1381 ext/odbc/php_odbc.c if (params[i].fp != -1) { fp 1382 ext/odbc/php_odbc.c close(params[i].fp); fp 1389 ext/odbc/php_odbc.c if ((params[i-1].fp = open(filename,O_RDONLY)) == -1) { fp 1393 ext/odbc/php_odbc.c if (params[i].fp != -1) { fp 1394 ext/odbc/php_odbc.c close(params[i].fp); fp 1408 ext/odbc/php_odbc.c (void *)(intptr_t)params[i-1].fp, 0, fp 1427 ext/odbc/php_odbc.c if (params[i].fp != -1) { fp 1428 ext/odbc/php_odbc.c close(params[i].fp); fp 1449 ext/odbc/php_odbc.c int fp, nbytes; fp 1451 ext/odbc/php_odbc.c rc = SQLParamData(result->stmt, (void*)&fp); fp 1453 ext/odbc/php_odbc.c while ((nbytes = read(fp, &buf, 4096)) > 0) { fp 1475 ext/odbc/php_odbc.c if (params[i].fp != -1) { fp 1476 ext/odbc/php_odbc.c close(params[i].fp); fp 789 ext/opcache/ZendAccelerator.c if (zend_fstat(fileno(file_handle->handle.fp), &statbuf) == -1) { fp 131 ext/opcache/shared_alloc_win32.c FILE *fp = fopen(mmap_base_file, "r"); fp 135 ext/opcache/shared_alloc_win32.c if (!fp) { fp 141 ext/opcache/shared_alloc_win32.c if (!fscanf(fp, "%p", &wanted_mapping_base)) { fp 145 ext/opcache/shared_alloc_win32.c fclose(fp); fp 148 ext/opcache/shared_alloc_win32.c fclose(fp); fp 309 ext/opcache/shared_alloc_win32.c FILE *fp = fopen(mmap_base_file, "w"); fp 311 ext/opcache/shared_alloc_win32.c if (!fp) { fp 317 ext/opcache/shared_alloc_win32.c fprintf(fp, "%p\n", mapping_base); fp 318 ext/opcache/shared_alloc_win32.c fclose(fp); fp 231 ext/opcache/zend_accelerator_blacklist.c FILE *fp; fp 234 ext/opcache/zend_accelerator_blacklist.c if ((fp = fopen(filename, "r")) == NULL) { fp 249 ext/opcache/zend_accelerator_blacklist.c while (fgets(buf, MAXPATHLEN, fp) != NULL) { fp 296 ext/opcache/zend_accelerator_blacklist.c fclose(fp); fp 303 ext/opcache/zend_accelerator_blacklist.c fclose(fp); fp 3123 ext/pgsql/pgsql.c FILE *fp = NULL; fp 3148 ext/pgsql/pgsql.c if (FAILURE == php_stream_cast(stream, PHP_STREAM_AS_STDIO, (void**)&fp, REPORT_ERRORS)) { fp 3153 ext/pgsql/pgsql.c PQtrace(pgsql, fp); fp 141 ext/phar/phar.c php_stream_close(phar->fp); fp 142 ext/phar/phar.c phar->fp = NULL; fp 253 ext/phar/phar.c if (phar->fp) { fp 254 ext/phar/phar.c php_stream_close(phar->fp); fp 255 ext/phar/phar.c phar->fp = 0; fp 287 ext/phar/phar.c if (phar->fp && !(phar->flags & PHAR_FILE_COMPRESSION_MASK)) { fp 292 ext/phar/phar.c php_stream_close(phar->fp); fp 293 ext/phar/phar.c phar->fp = NULL; fp 342 ext/phar/phar.c if (entry->fp && !entry->fp_refcount) { fp 343 ext/phar/phar.c php_stream_close(entry->fp); fp 344 ext/phar/phar.c entry->fp = NULL; fp 385 ext/phar/phar.c if (entry->fp) { fp 386 ext/phar/phar.c php_stream_close(entry->fp); fp 387 ext/phar/phar.c entry->fp = 0; fp 441 ext/phar/phar.c if (idata->fp && idata->fp != idata->phar->fp && idata->fp != idata->phar->ufp && idata->fp != idata->internal_file->fp) { fp 442 ext/phar/phar.c php_stream_close(idata->fp); fp 467 ext/phar/phar.c if (idata->fp && idata->fp != idata->phar->fp && idata->fp != idata->phar->ufp && idata->fp != idata->internal_file->fp) { fp 468 ext/phar/phar.c php_stream_close(idata->fp); fp 485 ext/phar/phar.c if (fp) {\ fp 486 ext/phar/phar.c php_stream_close(fp);\ fp 652 ext/phar/phar.c static int phar_parse_pharfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, zend_long halt_offset, phar_archive_data** pphar, php_uint32 compression, char **error) /* {{{ */ fp 673 ext/phar/phar.c if (-1 == php_stream_seek(fp, halt_offset, SEEK_SET)) { fp 679 ext/phar/phar.c if (3 != php_stream_read(fp, buffer, 3)) { fp 686 ext/phar/phar.c if (EOF == (nextchar = php_stream_getc(fp))) { fp 692 ext/phar/phar.c if (EOF == (nextchar = php_stream_getc(fp)) || (char)nextchar != '\n') { fp 704 ext/phar/phar.c if (-1 == php_stream_seek(fp, halt_offset, SEEK_SET)) { fp 711 ext/phar/phar.c if (4 != php_stream_read(fp, buffer, 4)) { fp 726 ext/phar/phar.c if (manifest_len < 10 || manifest_len != php_stream_read(fp, buffer, manifest_len)) { fp 744 ext/phar/phar.c php_stream_close(fp); fp 765 ext/phar/phar.c if (-1 == php_stream_seek(fp, -8, SEEK_END) fp 766 ext/phar/phar.c || (read_len = php_stream_tell(fp)) < 20 fp 767 ext/phar/phar.c || 8 != php_stream_read(fp, sig_buf, 8) fp 770 ext/phar/phar.c php_stream_close(fp); fp 786 ext/phar/phar.c if (-1 == php_stream_seek(fp, -12, SEEK_CUR) fp 787 ext/phar/phar.c || 4 != php_stream_read(fp, sig_buf, 4)) { fp 789 ext/phar/phar.c php_stream_close(fp); fp 802 ext/phar/phar.c if (-1 == php_stream_seek(fp, whence, SEEK_CUR) fp 803 ext/phar/phar.c || !(end_of_phar = php_stream_tell(fp)) fp 804 ext/phar/phar.c || signature_len != php_stream_read(fp, sig, signature_len)) { fp 807 ext/phar/phar.c php_stream_close(fp); fp 814 ext/phar/phar.c if (FAILURE == phar_verify_signature(fp, end_of_phar, PHAR_SIG_OPENSSL, sig, signature_len, fname, &signature, &sig_len, error)) { fp 817 ext/phar/phar.c php_stream_close(fp); fp 832 ext/phar/phar.c php_stream_seek(fp, -(8 + 64), SEEK_END); fp 833 ext/phar/phar.c read_len = php_stream_tell(fp); fp 835 ext/phar/phar.c if (php_stream_read(fp, (char*)digest, sizeof(digest)) != sizeof(digest)) { fp 837 ext/phar/phar.c php_stream_close(fp); fp 844 ext/phar/phar.c if (FAILURE == phar_verify_signature(fp, read_len, PHAR_SIG_SHA512, (char *)digest, 64, fname, &signature, &sig_len, error)) { fp 846 ext/phar/phar.c php_stream_close(fp); fp 859 ext/phar/phar.c php_stream_seek(fp, -(8 + 32), SEEK_END); fp 860 ext/phar/phar.c read_len = php_stream_tell(fp); fp 862 ext/phar/phar.c if (php_stream_read(fp, (char*)digest, sizeof(digest)) != sizeof(digest)) { fp 864 ext/phar/phar.c php_stream_close(fp); fp 871 ext/phar/phar.c if (FAILURE == phar_verify_signature(fp, read_len, PHAR_SIG_SHA256, (char *)digest, 32, fname, &signature, &sig_len, error)) { fp 873 ext/phar/phar.c php_stream_close(fp); fp 887 ext/phar/phar.c php_stream_close(fp); fp 897 ext/phar/phar.c php_stream_seek(fp, -(8 + 20), SEEK_END); fp 898 ext/phar/phar.c read_len = php_stream_tell(fp); fp 900 ext/phar/phar.c if (php_stream_read(fp, (char*)digest, sizeof(digest)) != sizeof(digest)) { fp 902 ext/phar/phar.c php_stream_close(fp); fp 909 ext/phar/phar.c if (FAILURE == phar_verify_signature(fp, read_len, PHAR_SIG_SHA1, (char *)digest, 20, fname, &signature, &sig_len, error)) { fp 911 ext/phar/phar.c php_stream_close(fp); fp 924 ext/phar/phar.c php_stream_seek(fp, -(8 + 16), SEEK_END); fp 925 ext/phar/phar.c read_len = php_stream_tell(fp); fp 927 ext/phar/phar.c if (php_stream_read(fp, (char*)digest, sizeof(digest)) != sizeof(digest)) { fp 929 ext/phar/phar.c php_stream_close(fp); fp 936 ext/phar/phar.c if (FAILURE == phar_verify_signature(fp, read_len, PHAR_SIG_MD5, (char *)digest, 16, fname, &signature, &sig_len, error)) { fp 938 ext/phar/phar.c php_stream_close(fp); fp 950 ext/phar/phar.c php_stream_close(fp); fp 959 ext/phar/phar.c php_stream_close(fp); fp 987 ext/phar/phar.c php_stream_close(fp); fp 1199 ext/phar/phar.c mydata->fp = fp; fp 1211 ext/phar/phar.c fp = NULL; fp 1218 ext/phar/phar.c fp = NULL; fp 1322 ext/phar/phar.c php_stream *fp; fp 1339 ext/phar/phar.c fp = php_stream_open_wrapper(fname, "rb", IGNORE_URL|STREAM_MUST_SEEK|0, &actual); fp 1346 ext/phar/phar.c if (fp) { fp 1347 ext/phar/phar.c if (phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error) == SUCCESS) { fp 1410 ext/phar/phar.c mydata->fp = NULL; fp 1476 ext/phar/phar.c php_stream *fp; fp 1502 ext/phar/phar.c fp = php_stream_open_wrapper(fname, "rb", IGNORE_URL|STREAM_MUST_SEEK, &actual); fp 1504 ext/phar/phar.c if (!fp) { fp 1521 ext/phar/phar.c ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error); fp 1565 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) /* {{{ */ fp 1584 ext/phar/phar.c if (-1 == php_stream_rewind(fp)) { fp 1594 ext/phar/phar.c while(!php_stream_eof(fp)) { fp 1595 ext/phar/phar.c if ((got = php_stream_read(fp, buffer+tokenlen, readsize)) < (size_t) tokenlen) { fp 1624 ext/phar/phar.c php_stream_rewind(fp); fp 1625 ext/phar/phar.c filter = php_stream_filter_create("zlib.inflate", &filterparams, php_stream_is_persistent(fp)); fp 1630 ext/phar/phar.c filter = php_stream_filter_create("zlib.inflate", &filterparams, php_stream_is_persistent(fp)); fp 1643 ext/phar/phar.c if (SUCCESS != php_stream_copy_to_stream_ex(fp, temp, PHP_STREAM_COPY_ALL, NULL)) { fp 1654 ext/phar/phar.c php_stream_close(fp); fp 1655 ext/phar/phar.c fp = temp; fp 1656 ext/phar/phar.c php_stream_rewind(fp); fp 1675 ext/phar/phar.c php_stream_rewind(fp); fp 1676 ext/phar/phar.c filter = php_stream_filter_create("bzip2.decompress", NULL, php_stream_is_persistent(fp)); fp 1685 ext/phar/phar.c if (SUCCESS != php_stream_copy_to_stream_ex(fp, temp, PHP_STREAM_COPY_ALL, NULL)) { fp 1692 ext/phar/phar.c php_stream_close(fp); fp 1693 ext/phar/phar.c fp = temp; fp 1694 ext/phar/phar.c php_stream_rewind(fp); fp 1703 ext/phar/phar.c php_stream_seek(fp, 0, SEEK_END); fp 1704 ext/phar/phar.c return phar_parse_zipfile(fp, fname, fname_len, alias, alias_len, pphar, error); fp 1709 ext/phar/phar.c php_stream_rewind(fp); fp 1710 ext/phar/phar.c return phar_parse_tarfile(fp, fname, fname_len, alias, alias_len, pphar, is_data, compression, error); fp 1717 ext/phar/phar.c return phar_parse_pharfile(fp, fname, fname_len, alias, alias_len, halt_offset, pphar, compression, error); fp 2269 ext/phar/phar.c php_stream *fp; fp 2310 ext/phar/phar.c fp = php_stream_open_wrapper(fname, "rb", IGNORE_URL|STREAM_MUST_SEEK|REPORT_ERRORS, &actual); fp 2312 ext/phar/phar.c if (!fp) { fp 2327 ext/phar/phar.c ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, REPORT_ERRORS, NULL, 0, error); fp 2344 ext/phar/phar.c php_stream *fp = idata->fp; fp 2406 ext/phar/phar.c php_stream_seek(fp, idata->zero, SEEK_SET); fp 2409 ext/phar/phar.c CRC32(crc, php_stream_getc(fp)); fp 2412 ext/phar/phar.c php_stream_seek(fp, idata->zero, SEEK_SET); fp 2545 ext/phar/phar.c if (phar->fp && !phar->is_brandnew) { fp 2546 ext/phar/phar.c oldfile = phar->fp; fp 3082 ext/phar/phar.c if (entry->fp_refcount == 0 && entry->fp != phar->fp && entry->fp != phar->ufp) { fp 3083 ext/phar/phar.c php_stream_close(entry->fp); fp 3086 ext/phar/phar.c entry->fp = NULL; fp 3154 ext/phar/phar.c if (phar->fp && free_fp) { fp 3155 ext/phar/phar.c php_stream_close(phar->fp); fp 3177 ext/phar/phar.c phar->fp = newfile; fp 3179 ext/phar/phar.c phar->fp = php_stream_open_wrapper(phar->fname, "w+b", IGNORE_URL|STREAM_MUST_SEEK|REPORT_ERRORS, NULL); fp 3180 ext/phar/phar.c if (!phar->fp) { fp 3181 ext/phar/phar.c phar->fp = newfile; fp 3194 ext/phar/phar.c filter = php_stream_filter_create("zlib.deflate", &filterparams, php_stream_is_persistent(phar->fp)); fp 3204 ext/phar/phar.c php_stream_filter_append(&phar->fp->writefilters, filter); fp 3205 ext/phar/phar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); fp 3208 ext/phar/phar.c php_stream_close(phar->fp); fp 3210 ext/phar/phar.c phar->fp = newfile; fp 3212 ext/phar/phar.c filter = php_stream_filter_create("bzip2.compress", NULL, php_stream_is_persistent(phar->fp)); fp 3213 ext/phar/phar.c php_stream_filter_append(&phar->fp->writefilters, filter); fp 3214 ext/phar/phar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); fp 3217 ext/phar/phar.c php_stream_close(phar->fp); fp 3219 ext/phar/phar.c phar->fp = newfile; fp 3221 ext/phar/phar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); fp 3227 ext/phar/phar.c if (-1 == php_stream_seek(phar->fp, phar->halt_offset, SEEK_SET)) { fp 3312 ext/phar/phar.c php_stream_rewind(PHAR_G(cached_fp)[phar->phar_pos].fp) : fp 3313 ext/phar/phar.c php_stream_rewind(phar->fp); fp 3510 ext/phar/phar.c if (PHAR_G(cached_fp)[i].fp) { fp 3511 ext/phar/phar.c php_stream_close(PHAR_G(cached_fp)[i].fp); fp 255 ext/phar/phar_internal.h php_stream *fp; fp 305 ext/phar/phar_internal.h php_stream *fp; fp 339 ext/phar/phar_internal.h php_stream *fp; fp 347 ext/phar/phar_internal.h return entry->phar->fp; fp 349 ext/phar/phar_internal.h return PHAR_G(cached_fp)[entry->phar->phar_pos].fp; fp 360 ext/phar/phar_internal.h static inline void phar_set_entrypfp(phar_entry_info *entry, php_stream *fp) fp 363 ext/phar/phar_internal.h entry->phar->fp = fp; fp 367 ext/phar/phar_internal.h PHAR_G(cached_fp)[entry->phar->phar_pos].fp = fp; fp 370 ext/phar/phar_internal.h static inline void phar_set_entrypufp(phar_entry_info *entry, php_stream *fp) fp 373 ext/phar/phar_internal.h entry->phar->ufp = fp; fp 377 ext/phar/phar_internal.h PHAR_G(cached_fp)[entry->phar->phar_pos].ufp = fp; fp 383 ext/phar/phar_internal.h return phar->fp; fp 385 ext/phar/phar_internal.h return PHAR_G(cached_fp)[phar->phar_pos].fp; fp 396 ext/phar/phar_internal.h static inline void phar_set_pharfp(phar_archive_data *phar, php_stream *fp) fp 399 ext/phar/phar_internal.h phar->fp = fp; fp 403 ext/phar/phar_internal.h PHAR_G(cached_fp)[phar->phar_pos].fp = fp; fp 406 ext/phar/phar_internal.h static inline void phar_set_pharufp(phar_archive_data *phar, php_stream *fp) fp 409 ext/phar/phar_internal.h phar->ufp = fp; fp 413 ext/phar/phar_internal.h PHAR_G(cached_fp)[phar->phar_pos].ufp = fp; fp 465 ext/phar/phar_internal.h php_stream *fp; fp 555 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); fp 556 ext/phar/phar_internal.h int phar_create_signature(phar_archive_data *phar, php_stream *fp, char **signature, int *signature_length, char **error); fp 583 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); fp 588 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); fp 593 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); fp 157 ext/phar/phar_object.c php_stream *fp; fp 193 ext/phar/phar_object.c fp = phar_get_efp(info, 1); fp 195 ext/phar/phar_object.c if (!fp) { fp 204 ext/phar/phar_object.c fp = phar_get_efp(info, 1); fp 210 ext/phar/phar_object.c got = php_stream_read(fp, buf, MIN(8192, info->uncompressed_filesize - position)); fp 1396 ext/phar/phar_object.c php_stream *fp; fp 1408 ext/phar/phar_object.c php_stream *fp; fp 1432 ext/phar/phar_object.c php_stream_from_zval_no_verify(fp, value); fp 1434 ext/phar/phar_object.c if (!fp) { fp 1622 ext/phar/phar_object.c fp = php_stream_open_wrapper(fname, "rb", STREAM_MUST_SEEK|0, &opened); fp 1624 ext/phar/phar_object.c if (!fp) { fp 1653 ext/phar/phar_object.c php_stream_close(fp); fp 1676 ext/phar/phar_object.c php_stream_close(fp); fp 1687 ext/phar/phar_object.c php_stream_close(data->internal_file->fp); fp 1690 ext/phar/phar_object.c data->internal_file->fp = NULL; fp 1692 ext/phar/phar_object.c data->internal_file->offset_abs = data->internal_file->offset = php_stream_tell(p_obj->fp); fp 1693 ext/phar/phar_object.c data->fp = NULL; fp 1694 ext/phar/phar_object.c php_stream_copy_to_stream_ex(fp, p_obj->fp, PHP_STREAM_COPY_ALL, &contents_len); fp 1696 ext/phar/phar_object.c php_stream_tell(p_obj->fp) - data->internal_file->offset; fp 1700 ext/phar/phar_object.c php_stream_close(fp); fp 1807 ext/phar/phar_object.c pass.fp = php_stream_fopen_tmpfile(); fp 1808 ext/phar/phar_object.c if (pass.fp == NULL) { fp 1818 ext/phar/phar_object.c php_stream_close(pass.fp); fp 1830 ext/phar/phar_object.c phar_obj->archive->ufp = pass.fp; fp 1843 ext/phar/phar_object.c php_stream_close(pass.fp); fp 1891 ext/phar/phar_object.c pass.fp = php_stream_fopen_tmpfile(); fp 1892 ext/phar/phar_object.c if (pass.fp == NULL) { fp 1898 ext/phar/phar_object.c phar_obj->archive->ufp = pass.fp; fp 1905 ext/phar/phar_object.c php_stream_close(pass.fp); fp 1953 ext/phar/phar_object.c static int phar_copy_file_contents(phar_entry_info *entry, php_stream *fp) /* {{{ */ fp 1973 ext/phar/phar_object.c offset = php_stream_tell(fp); fp 1980 ext/phar/phar_object.c if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(link, 0), fp, link->uncompressed_filesize, NULL)) { fp 1988 ext/phar/phar_object.c entry->cfp = entry->fp; fp 1989 ext/phar/phar_object.c entry->fp = NULL; fp 2109 ext/phar/phar_object.c pphar->fp = phar->fp; fp 2110 ext/phar/phar_object.c phar->fp = NULL; fp 2233 ext/phar/phar_object.c phar->fp = php_stream_fopen_tmpfile(); fp 2234 ext/phar/phar_object.c if (phar->fp == NULL) { fp 2265 ext/phar/phar_object.c if (FAILURE == phar_copy_file_contents(&newentry, phar->fp)) { fp 2267 ext/phar/phar_object.c php_stream_close(phar->fp); fp 2302 ext/phar/phar_object.c if (phar->fp) { fp 2303 ext/phar/phar_object.c php_stream_close(phar->fp); fp 3472 ext/phar/phar_object.c php_stream_close(newentry.fp); fp 3606 ext/phar/phar_object.c contents_len = php_stream_write(data->fp, cont_str, cont_len); fp 3616 ext/phar/phar_object.c php_stream_copy_to_stream_ex(contents_file, data->fp, PHP_STREAM_COPY_ALL, &contents_len); fp 3856 ext/phar/phar_object.c php_stream *fp; fp 3869 ext/phar/phar_object.c if (phar_obj->archive->fp && !phar_obj->archive->is_brandnew && !(stub->flags & PHAR_ENT_COMPRESSION_MASK)) { fp 3870 ext/phar/phar_object.c fp = phar_obj->archive->fp; fp 3872 ext/phar/phar_object.c if (!(fp = php_stream_open_wrapper(phar_obj->archive->fname, "rb", 0, NULL))) { fp 3880 ext/phar/phar_object.c filter = php_stream_filter_create(filter_name, NULL, php_stream_is_persistent(fp)); fp 3888 ext/phar/phar_object.c php_stream_filter_append(&fp->readfilters, filter); fp 3892 ext/phar/phar_object.c if (!fp) { fp 3898 ext/phar/phar_object.c php_stream_seek(fp, stub->offset_abs, SEEK_SET); fp 3907 ext/phar/phar_object.c if (phar_obj->archive->fp && !phar_obj->archive->is_brandnew) { fp 3908 ext/phar/phar_object.c fp = phar_obj->archive->fp; fp 3910 ext/phar/phar_object.c fp = php_stream_open_wrapper(phar_obj->archive->fname, "rb", 0, NULL); fp 3913 ext/phar/phar_object.c if (!fp) { fp 3919 ext/phar/phar_object.c php_stream_rewind(fp); fp 3923 ext/phar/phar_object.c if (len != php_stream_read(fp, ZSTR_VAL(buf), len)) { fp 3924 ext/phar/phar_object.c if (fp != phar_obj->archive->fp) { fp 3925 ext/phar/phar_object.c php_stream_close(fp); fp 3938 ext/phar/phar_object.c if (fp != phar_obj->archive->fp) { fp 3939 ext/phar/phar_object.c php_stream_close(fp); fp 4067 ext/phar/phar_object.c php_stream *fp; fp 4197 ext/phar/phar_object.c fp = php_stream_open_wrapper(fullpath, "w+b", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL); fp 4199 ext/phar/phar_object.c fp = php_stream_open_wrapper(fullpath, "w+b", REPORT_ERRORS, NULL); fp 4202 ext/phar/phar_object.c if (!fp) { fp 4216 ext/phar/phar_object.c php_stream_close(fp); fp 4224 ext/phar/phar_object.c php_stream_close(fp); fp 4228 ext/phar/phar_object.c if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(entry, 0), fp, entry->uncompressed_filesize, NULL)) { fp 4231 ext/phar/phar_object.c php_stream_close(fp); fp 4235 ext/phar/phar_object.c php_stream_close(fp); fp 4255 ext/phar/phar_object.c php_stream *fp; fp 4271 ext/phar/phar_object.c fp = php_stream_open_wrapper(phar_obj->archive->fname, "rb", IGNORE_URL|STREAM_MUST_SEEK, NULL); fp 4273 ext/phar/phar_object.c if (!fp) { fp 4279 ext/phar/phar_object.c php_stream_close(fp); fp 4796 ext/phar/phar_object.c php_stream *fp; fp 4825 ext/phar/phar_object.c if (!(fp = phar_get_efp(link, 0))) { fp 4832 ext/phar/phar_object.c str = php_stream_copy_to_mem(fp, link->uncompressed_filesize, 0); fp 5024 ext/phar/phar_object.c if (!entry_obj->entry->fp) { fp 270 ext/phar/stream.c idata->fp = phar_get_pharfp(phar); fp 380 ext/phar/stream.c php_stream_seek(data->fp, data->position + data->zero, SEEK_SET); fp 382 ext/phar/stream.c got = php_stream_read(data->fp, buf, MIN(count, entry->uncompressed_filesize - data->position)); fp 383 ext/phar/stream.c data->position = php_stream_tell(data->fp) - data->zero; fp 427 ext/phar/stream.c res = php_stream_seek(data->fp, temp, SEEK_SET); fp 428 ext/phar/stream.c *newoffset = php_stream_tell(data->fp) - data->zero; fp 441 ext/phar/stream.c php_stream_seek(data->fp, data->position, SEEK_SET); fp 442 ext/phar/stream.c if (count != php_stream_write(data->fp, buf, count)) { fp 446 ext/phar/stream.c data->position = php_stream_tell(data->fp); fp 864 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) /* {{{ */ 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) /* {{{ */ 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)) { 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 492 ext/phar/tar.c php_stream_close(fp); fp 510 ext/phar/tar.c if (FAILURE == phar_tar_process_metadata(newentry, fp)) { fp 514 ext/phar/tar.c php_stream_close(fp); fp 526 ext/phar/tar.c php_stream_close(fp); fp 531 ext/phar/tar.c read = php_stream_read(fp, buf, size); fp 547 ext/phar/tar.c php_stream_close(fp); fp 555 ext/phar/tar.c php_stream_seek(fp, pos, SEEK_SET); fp 561 ext/phar/tar.c php_stream_close(fp); fp 572 ext/phar/tar.c php_stream_seek(fp, size, SEEK_CUR); fp 573 ext/phar/tar.c if ((uint)php_stream_tell(fp) > totalsize) { fp 577 ext/phar/tar.c php_stream_close(fp); fp 583 ext/phar/tar.c read = php_stream_read(fp, buf, sizeof(buf)); fp 589 ext/phar/tar.c php_stream_close(fp); fp 593 ext/phar/tar.c } while (!php_stream_eof(fp)); fp 603 ext/phar/tar.c php_stream_close(fp); fp 616 ext/phar/tar.c myphar->fp = fp; fp 635 ext/phar/tar.c php_stream_close(fp); fp 702 ext/phar/tar.c struct _phar_pass_tar_info *fp = (struct _phar_pass_tar_info *)argument; fp 724 ext/phar/tar.c if (fp->error) { fp 725 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 734 ext/phar/tar.c if (fp->error) { fp 735 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 748 ext/phar/tar.c if (fp->error) { fp 749 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 755 ext/phar/tar.c if (fp->error) { fp 756 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 774 ext/phar/tar.c if (fp->error) { fp 775 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 781 ext/phar/tar.c entry->header_offset = php_stream_tell(fp->new); fp 783 ext/phar/tar.c if (sizeof(header) != php_stream_write(fp->new, (char *) &header, sizeof(header))) { fp 784 ext/phar/tar.c if (fp->error) { fp 785 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 790 ext/phar/tar.c pos = php_stream_tell(fp->new); /* save start of file within tar */ fp 794 ext/phar/tar.c if (FAILURE == phar_open_entry_fp(entry, fp->error, 0)) { fp 799 ext/phar/tar.c if (fp->error) { fp 800 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 805 ext/phar/tar.c if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(entry, 0), fp->new, entry->uncompressed_filesize, NULL)) { fp 806 ext/phar/tar.c if (fp->error) { fp 807 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 813 ext/phar/tar.c php_stream_write(fp->new, padding, ((entry->uncompressed_filesize +511)&~511) - entry->uncompressed_filesize); fp 820 ext/phar/tar.c fp->free_fp = 0; fp 823 ext/phar/tar.c fp->free_ufp = 0; fp 831 ext/phar/tar.c if (entry->fp_type == PHAR_MOD && entry->fp != entry->phar->fp && entry->fp != entry->phar->ufp) { fp 833 ext/phar/tar.c php_stream_close(entry->fp); fp 835 ext/phar/tar.c entry->fp = NULL; fp 866 ext/phar/tar.c if (entry->fp && entry->fp_type == PHAR_MOD) { fp 867 ext/phar/tar.c php_stream_close(entry->fp); fp 872 ext/phar/tar.c entry->fp = php_stream_fopen_tmpfile(); fp 874 ext/phar/tar.c if (entry->fp == NULL) { fp 878 ext/phar/tar.c if (ZSTR_LEN(entry->metadata_str.s) != php_stream_write(entry->fp, ZSTR_VAL(entry->metadata_str.s), ZSTR_LEN(entry->metadata_str.s))) { fp 978 ext/phar/tar.c entry.fp = php_stream_fopen_tmpfile(); fp 979 ext/phar/tar.c if (entry.fp == NULL) { fp 983 ext/phar/tar.c if (phar->alias_len != (int)php_stream_write(entry.fp, phar->alias, phar->alias_len)) { fp 1060 ext/phar/tar.c entry.fp = php_stream_fopen_tmpfile(); fp 1061 ext/phar/tar.c if (entry.fp == NULL) { fp 1067 ext/phar/tar.c if ((size_t)len != php_stream_write(entry.fp, user_stub, len) fp 1068 ext/phar/tar.c || 5 != php_stream_write(entry.fp, " ?>\r\n", 5)) { fp 1075 ext/phar/tar.c php_stream_close(entry.fp); fp 1088 ext/phar/tar.c entry.fp = php_stream_fopen_tmpfile(); fp 1089 ext/phar/tar.c if (entry.fp == NULL) { fp 1093 ext/phar/tar.c if (sizeof(newstub)-1 != php_stream_write(entry.fp, newstub, sizeof(newstub)-1)) { fp 1094 ext/phar/tar.c php_stream_close(entry.fp); fp 1108 ext/phar/tar.c php_stream_close(entry.fp); fp 1116 ext/phar/tar.c php_stream_close(entry.fp); fp 1121 ext/phar/tar.c php_stream_close(entry.fp); fp 1131 ext/phar/tar.c if (phar->fp && !phar->is_brandnew) { fp 1132 ext/phar/tar.c oldfile = phar->fp; fp 1226 ext/phar/tar.c entry.fp = php_stream_fopen_tmpfile(); fp 1227 ext/phar/tar.c if (entry.fp == NULL) { fp 1243 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 1286 ext/phar/tar.c if (phar->fp && pass.free_fp) { fp 1287 ext/phar/tar.c php_stream_close(phar->fp); fp 1302 ext/phar/tar.c phar->fp = newfile; fp 1304 ext/phar/tar.c phar->fp = php_stream_open_wrapper(phar->fname, "w+b", IGNORE_URL|STREAM_MUST_SEEK|REPORT_ERRORS, NULL); fp 1305 ext/phar/tar.c if (!phar->fp) { fp 1306 ext/phar/tar.c phar->fp = newfile; fp 1324 ext/phar/tar.c filter = php_stream_filter_create("zlib.deflate", &filterparams, php_stream_is_persistent(phar->fp)); fp 1329 ext/phar/tar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); fp 1337 ext/phar/tar.c php_stream_filter_append(&phar->fp->writefilters, filter); fp 1338 ext/phar/tar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); fp 1341 ext/phar/tar.c php_stream_close(phar->fp); fp 1343 ext/phar/tar.c phar->fp = newfile; fp 1347 ext/phar/tar.c filter = php_stream_filter_create("bzip2.compress", NULL, php_stream_is_persistent(phar->fp)); fp 1348 ext/phar/tar.c php_stream_filter_append(&phar->fp->writefilters, filter); fp 1349 ext/phar/tar.c php_stream_copy_to_stream_ex(newfile, phar->fp, PHP_STREAM_COPY_ALL, NULL); fp 1352 ext/phar/tar.c php_stream_close(phar->fp); fp 1354 ext/phar/tar.c phar->fp = newfile; fp 1356 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, zend_off_t end, char *key, int key_len, char **signature, int *signature_len); 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); fp 125 ext/phar/util.c if (!fp) { fp 165 ext/phar/util.c return php_stream_seek(fp, temp, SEEK_SET); fp 440 ext/phar/util.c (*ret)->fp = NULL; fp 494 ext/phar/util.c (*ret)->fp = phar_get_efp(entry, 1); fp 563 ext/phar/util.c etemp.fp = php_stream_fopen_tmpfile(); fp 565 ext/phar/util.c if (!etemp.fp) { fp 600 ext/phar/util.c php_stream_close(etemp.fp); fp 610 ext/phar/util.c php_stream_close(etemp.fp); fp 618 ext/phar/util.c ret->fp = entry->fp; fp 668 ext/phar/util.c dest->fp = php_stream_fopen_tmpfile(); fp 669 ext/phar/util.c if (dest->fp == NULL) { fp 680 ext/phar/util.c if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(link, 0), dest->fp, link->uncompressed_filesize, NULL)) { fp 681 ext/phar/util.c php_stream_close(dest->fp); fp 716 ext/phar/util.c if (!entry->fp) { fp 717 ext/phar/util.c entry->fp = php_stream_open_wrapper(entry->tmp, "rb", STREAM_MUST_SEEK|0, NULL); fp 738 ext/phar/util.c dummy.fp = phar_get_pharfp(phar); fp 756 ext/phar/util.c dummy.fp = phar_get_pharfp(phar); fp 803 ext/phar/util.c dummy.fp = ufp; fp 815 ext/phar/util.c php_stream_truncate_set_size(entry->fp, 0); fp 841 ext/phar/util.c entry->fp = php_stream_fopen_tmpfile(); fp 843 ext/phar/util.c if (!entry->fp) { fp 866 ext/phar/util.c php_stream *fp; fp 877 ext/phar/util.c fp = php_stream_fopen_tmpfile(); fp 878 ext/phar/util.c if (fp == NULL) { fp 889 ext/phar/util.c if (SUCCESS != php_stream_copy_to_stream_ex(phar_get_efp(link, 0), fp, link->uncompressed_filesize, NULL)) { fp 903 ext/phar/util.c entry->fp = fp; fp 1395 ext/phar/util.c static int phar_call_openssl_signverify(int is_sign, php_stream *fp, zend_off_t end, char *key, int key_len, char **signature, int *signature_len) /* {{{ */ fp 1405 ext/phar/util.c php_stream_rewind(fp); fp 1406 ext/phar/util.c str = php_stream_copy_to_mem(fp, (size_t) end, 0); fp 1483 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) /* {{{ */ fp 1489 ext/phar/util.c php_stream_rewind(fp); fp 1531 ext/phar/util.c if (FAILURE == phar_call_openssl_signverify(0, fp, end_of_phar, pubkey ? ZSTR_VAL(pubkey) : NULL, pubkey ? ZSTR_LEN(pubkey) : 0, &sig, &tempsig)) { fp 1579 ext/phar/util.c php_stream_seek(fp, 0, SEEK_SET); fp 1581 ext/phar/util.c while (read_size && (len = php_stream_read(fp, (char*)buf, read_size)) > 0) { fp 1621 ext/phar/util.c while ((len = php_stream_read(fp, (char*)buf, read_size)) > 0) { fp 1654 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 1728 ext/phar/util.c while ((len = php_stream_read(fp, (char*)buf, read_size)) > 0) { fp 1758 ext/phar/util.c int phar_create_signature(phar_archive_data *phar, php_stream *fp, char **signature, int *signature_length, char **error) /* {{{ */ fp 1763 ext/phar/util.c php_stream_rewind(fp); fp 1778 ext/phar/util.c while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { fp 1793 ext/phar/util.c while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { fp 1851 ext/phar/util.c while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { fp 1874 ext/phar/util.c php_stream_seek(fp, 0, SEEK_END); fp 1876 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)) { fp 1895 ext/phar/util.c while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) { fp 1910 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) /* {{{ */ 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) /* {{{ */ 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 254 ext/phar/zip.c php_stream_close(fp); fp 282 ext/phar/zip.c php_stream_seek(fp, PHAR_GET_32(locator.cdir_offset), SEEK_SET); fp 301 ext/phar/zip.c php_stream_close(fp); \ fp 323 ext/phar/zip.c php_stream_close(fp); \ fp 341 ext/phar/zip.c zend_off_t beforeus = php_stream_tell(fp); fp 343 ext/phar/zip.c if (sizeof(zipentry) != php_stream_read(fp, (char *) &zipentry, sizeof(zipentry))) { fp 378 ext/phar/zip.c if (entry.filename_len != php_stream_read(fp, entry.filename, entry.filename_len)) { fp 401 ext/phar/zip.c now = php_stream_tell(fp); fp 408 ext/phar/zip.c php_stream_seek(fp, 0, SEEK_SET); fp 410 ext/phar/zip.c php_stream_copy_to_stream_ex(fp, sigfile, entry.header_offset, NULL); fp 412 ext/phar/zip.c php_stream_seek(fp, PHAR_GET_32(locator.cdir_offset), SEEK_SET); fp 414 ext/phar/zip.c php_stream_copy_to_stream_ex(fp, sigfile, beforeus - PHAR_GET_32(locator.cdir_offset), NULL); fp 418 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 420 ext/phar/zip.c read = php_stream_read(fp, sig, entry.uncompressed_filesize); fp 453 ext/phar/zip.c zend_off_t loc = php_stream_tell(fp); fp 454 ext/phar/zip.c if (FAILURE == phar_zip_process_extra(fp, &entry, PHAR_GET_16(zipentry.extra_len))) { fp 458 ext/phar/zip.c php_stream_seek(fp, loc + PHAR_GET_16(zipentry.extra_len), SEEK_SET); fp 522 ext/phar/zip.c if (PHAR_GET_16(zipentry.comment_len) != php_stream_read(fp, buf, PHAR_GET_16(zipentry.comment_len))) { fp 547 ext/phar/zip.c saveloc = php_stream_tell(fp); fp 548 ext/phar/zip.c php_stream_seek(fp, PHAR_GET_32(zipentry.offset), SEEK_SET); fp 550 ext/phar/zip.c if (sizeof(local) != php_stream_read(fp, (char *) &local, sizeof(local))) { fp 564 ext/phar/zip.c php_stream_seek(fp, entry.offset, SEEK_SET); fp 566 ext/phar/zip.c fp->writepos = 0; fp 567 ext/phar/zip.c fp->readpos = 0; fp 568 ext/phar/zip.c php_stream_seek(fp, entry.offset, SEEK_SET); fp 569 ext/phar/zip.c fp->writepos = 0; fp 570 ext/phar/zip.c fp->readpos = 0; fp 575 ext/phar/zip.c filter = php_stream_filter_create("zlib.inflate", NULL, php_stream_is_persistent(fp)); fp 582 ext/phar/zip.c php_stream_filter_append(&fp->readfilters, filter); fp 587 ext/phar/zip.c zend_string *str = php_stream_copy_to_mem(fp, entry.uncompressed_filesize, 0); fp 607 ext/phar/zip.c filter = php_stream_filter_create("bzip2.decompress", NULL, php_stream_is_persistent(fp)); fp 614 ext/phar/zip.c php_stream_filter_append(&fp->readfilters, filter); fp 619 ext/phar/zip.c zend_string *str = php_stream_copy_to_mem(fp, entry.uncompressed_filesize, 0); fp 641 ext/phar/zip.c zend_string *str = php_stream_copy_to_mem(fp, entry.uncompressed_filesize, 0); fp 659 ext/phar/zip.c php_stream_seek(fp, saveloc, SEEK_SET); fp 666 ext/phar/zip.c mydata->fp = fp; fp 857 ext/phar/zip.c if (entry->fp_type == PHAR_MOD && entry->fp != entry->phar->fp && entry->fp != entry->phar->ufp) { fp 858 ext/phar/zip.c php_stream_close(entry->fp); fp 859 ext/phar/zip.c entry->fp = NULL; fp 1054 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 1055 ext/phar/zip.c php_stream_close(entry->fp); fp 1080 ext/phar/zip.c entry->fp = NULL; fp 1144 ext/phar/zip.c entry.fp = php_stream_fopen_tmpfile(); fp 1147 ext/phar/zip.c if (entry.fp == NULL) { fp 1155 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 1220 ext/phar/zip.c entry.fp = php_stream_fopen_tmpfile(); fp 1221 ext/phar/zip.c if (entry.fp == NULL) { fp 1225 ext/phar/zip.c if (phar->alias_len != (int)php_stream_write(entry.fp, phar->alias, phar->alias_len)) { fp 1312 ext/phar/zip.c entry.fp = php_stream_fopen_tmpfile(); fp 1313 ext/phar/zip.c if (entry.fp == NULL) { fp 1319 ext/phar/zip.c if ((size_t)len != php_stream_write(entry.fp, user_stub, len) fp 1320 ext/phar/zip.c || 5 != php_stream_write(entry.fp, " ?>\r\n", 5)) { fp 1327 ext/phar/zip.c php_stream_close(entry.fp); fp 1349 ext/phar/zip.c entry.fp = php_stream_fopen_tmpfile(); fp 1350 ext/phar/zip.c if (entry.fp == NULL) { fp 1354 ext/phar/zip.c if (sizeof(newstub)-1 != php_stream_write(entry.fp, newstub, sizeof(newstub)-1)) { fp 1355 ext/phar/zip.c php_stream_close(entry.fp); fp 1369 ext/phar/zip.c php_stream_close(entry.fp); fp 1377 ext/phar/zip.c php_stream_close(entry.fp); fp 1382 ext/phar/zip.c php_stream_close(entry.fp); fp 1392 ext/phar/zip.c if (phar->fp && !phar->is_brandnew) { fp 1393 ext/phar/zip.c oldfile = phar->fp; fp 1515 ext/phar/zip.c if (phar->fp && pass.free_fp) { fp 1516 ext/phar/zip.c php_stream_close(phar->fp); fp 1531 ext/phar/zip.c phar->fp = pass.filefp; fp 1533 ext/phar/zip.c phar->fp = php_stream_open_wrapper(phar->fname, "w+b", IGNORE_URL|STREAM_MUST_SEEK|REPORT_ERRORS, NULL); fp 1534 ext/phar/zip.c if (!phar->fp) { fp 1538 ext/phar/zip.c phar->fp = pass.filefp; fp 1545 ext/phar/zip.c php_stream_copy_to_stream_ex(pass.filefp, phar->fp, PHP_STREAM_COPY_ALL, NULL); fp 1026 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1073 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1082 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1086 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1090 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1095 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1099 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1111 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1117 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1121 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1125 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1129 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1157 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1172 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1177 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1186 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1191 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 1198 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 2002 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 2112 ext/standard/basic_functions.c ZEND_ARG_INFO(0, fp) fp 235 ext/standard/browscap.c fh.handle.fp = VCWD_FOPEN(filename, "r"); fp 238 ext/standard/browscap.c if (!fh.handle.fp) { fp 95 ext/standard/exec.c FILE *fp; fp 111 ext/standard/exec.c fp = VCWD_POPEN(cmd, "rb"); fp 113 ext/standard/exec.c fp = VCWD_POPEN(cmd, "r"); fp 115 ext/standard/exec.c if (!fp) { fp 120 ext/standard/exec.c stream = php_stream_fopen_from_pipe(fp, "rb"); fp 913 ext/standard/file.c FILE *fp; fp 931 ext/standard/file.c fp = VCWD_POPEN(command, posix_mode); fp 932 ext/standard/file.c if (!fp) { fp 938 ext/standard/file.c stream = php_stream_fopen_from_pipe(fp, mode); fp 1536 ext/standard/file.c zval *fp; fp 1540 ext/standard/file.c if (zend_parse_parameters(ZEND_NUM_ARGS(), "rl", &fp, &size) == FAILURE) { fp 1544 ext/standard/file.c PHP_STREAM_TO_ZVAL(stream, fp); fp 1559 ext/standard/file.c zval *fp; fp 1569 ext/standard/file.c if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &fp) == FAILURE) { fp 1573 ext/standard/file.c PHP_STREAM_TO_ZVAL(stream, fp); fp 1869 ext/standard/file.c zval *fp = NULL, *fields = NULL; fp 1875 ext/standard/file.c &fp, &fields, &delimiter_str, &delimiter_str_len, fp 1916 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) fp 100 ext/standard/iptc.c static int php_iptc_get1(FILE *fp, int spool, unsigned char **spoolbuf) 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) fp 124 ext/standard/iptc.c while (php_iptc_get1(fp, spool, spoolbuf) != EOF) continue; fp 132 ext/standard/iptc.c static int php_iptc_skip_variable(FILE *fp, int spool, unsigned char **spoolbuf) fp 137 ext/standard/iptc.c if ((c1 = php_iptc_get1(fp, spool, spoolbuf)) == EOF) return M_EOI; fp 139 ext/standard/iptc.c if ((c2 = php_iptc_get1(fp, spool, spoolbuf)) == EOF) return M_EOI; fp 146 ext/standard/iptc.c if (php_iptc_get1(fp, spool, spoolbuf) == EOF) return M_EOI; fp 154 ext/standard/iptc.c static int php_iptc_next_marker(FILE *fp, int spool, unsigned char **spoolbuf) fp 160 ext/standard/iptc.c c = php_iptc_get1(fp, spool, spoolbuf); fp 165 ext/standard/iptc.c if ((c = php_iptc_get1(fp, spool, spoolbuf)) == EOF) fp 171 ext/standard/iptc.c c = php_iptc_get1(fp, 0, 0); fp 176 ext/standard/iptc.c php_iptc_put1(fp, spool, (unsigned char)c, spoolbuf); fp 192 ext/standard/iptc.c FILE *fp; fp 213 ext/standard/iptc.c if ((fp = VCWD_FOPEN(jpeg_file, "rb")) == 0) { fp 219 ext/standard/iptc.c zend_fstat(fileno(fp), &sb); fp 226 ext/standard/iptc.c if (php_iptc_get1(fp, spool, poi?&poi:0) != 0xFF) { fp 227 ext/standard/iptc.c fclose(fp); fp 234 ext/standard/iptc.c if (php_iptc_get1(fp, spool, poi?&poi:0) != 0xD8) { fp 235 ext/standard/iptc.c fclose(fp); fp 243 ext/standard/iptc.c marker = php_iptc_next_marker(fp, spool, poi?&poi:0); fp 248 ext/standard/iptc.c php_iptc_put1(fp, spool, (unsigned char)marker, poi?&poi:0); fp 254 ext/standard/iptc.c php_iptc_skip_variable(fp, 0, 0); fp 255 ext/standard/iptc.c fgetc(fp); /* skip already copied 0xFF byte */ fp 256 ext/standard/iptc.c php_iptc_read_remaining(fp, spool, poi?&poi:0); fp 269 ext/standard/iptc.c php_iptc_skip_variable(fp, spool, poi?&poi:0); fp 279 ext/standard/iptc.c php_iptc_put1(fp, spool, psheader[inx], poi?&poi:0); fp 282 ext/standard/iptc.c php_iptc_put1(fp, spool, (unsigned char)(iptcdata_len>>8), poi?&poi:0); fp 283 ext/standard/iptc.c php_iptc_put1(fp, spool, (unsigned char)(iptcdata_len&0xff), poi?&poi:0); fp 286 ext/standard/iptc.c php_iptc_put1(fp, spool, iptcdata[inx], poi?&poi:0); fp 292 ext/standard/iptc.c php_iptc_read_remaining(fp, spool, poi?&poi:0); fp 297 ext/standard/iptc.c php_iptc_skip_variable(fp, spool, poi?&poi:0); fp 302 ext/standard/iptc.c fclose(fp); fp 45 ext/zip/lib/zip_fdopen.c FILE *fp; fp 63 ext/zip/lib/zip_fdopen.c if ((fp=fdopen(fd, "rb")) == NULL) { fp 70 ext/zip/lib/zip_fdopen.c if ((src = zip_source_filep_create(fp, 0, -1, &error)) == NULL) { fp 1265 ext/zlib/zlib.c ZEND_ARG_INFO(0, fp) fp 1271 ext/zlib/zlib.c ZEND_ARG_INFO(0, fp) fp 1275 ext/zlib/zlib.c ZEND_ARG_INFO(0, fp) fp 1281 ext/zlib/zlib.c ZEND_ARG_INFO(0, fp) fp 1286 ext/zlib/zlib.c ZEND_ARG_INFO(0, fp) fp 1292 ext/zlib/zlib.c ZEND_ARG_INFO(0, fp) fp 335 main/fopen_wrappers.c FILE *fp; fp 340 main/fopen_wrappers.c fp = VCWD_FOPEN(path, mode); fp 341 main/fopen_wrappers.c if (fp && opened_path) { fp 349 main/fopen_wrappers.c return fp; fp 622 main/fopen_wrappers.c FILE *fp; fp 685 main/fopen_wrappers.c fp = php_fopen_and_set_opened_path(trypath, mode, opened_path); fp 686 main/fopen_wrappers.c if (fp) { fp 688 main/fopen_wrappers.c return fp; fp 553 main/php_ini.c fh.handle.fp = VCWD_FOPEN(php_ini_file_name, "r"); fp 554 main/php_ini.c if (fh.handle.fp) { fp 562 main/php_ini.c if (!fh.handle.fp) { fp 566 main/php_ini.c fh.handle.fp = php_fopen_with_path(ini_fname, "r", php_ini_search_path, &opened_path); fp 568 main/php_ini.c if (fh.handle.fp) { fp 574 main/php_ini.c if (!fh.handle.fp) { fp 575 main/php_ini.c fh.handle.fp = php_fopen_with_path("php.ini", "r", php_ini_search_path, &opened_path); fp 576 main/php_ini.c if (fh.handle.fp) { fp 588 main/php_ini.c if (fh.handle.fp) { fp 665 main/php_ini.c if ((fh2.handle.fp = VCWD_FOPEN(ini_file, "r"))) { fp 759 main/php_ini.c if ((fh.handle.fp = VCWD_FOPEN(ini_file, "r"))) { fp 291 main/php_open_temporary_file.c FILE *fp; fp 298 main/php_open_temporary_file.c fp = fdopen(fd, "r+b"); fp 299 main/php_open_temporary_file.c if (fp == NULL) { fp 303 main/php_open_temporary_file.c return fp; fp 347 main/streams/cast.c FILE *fp = NULL; fp 356 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 363 main/streams/cast.c return fp; fp 2306 sapi/cgi/cgi_main.c file_handle.handle.fp = NULL; fp 2310 sapi/cgi/cgi_main.c file_handle.handle.fp = stdin; fp 2384 sapi/cgi/cgi_main.c file_handle.handle.fp = fdopen(file_handle.handle.fd, "rb"); fp 2387 sapi/cgi/cgi_main.c if (!file_handle.handle.fp || fp 2388 sapi/cgi/cgi_main.c (file_handle.handle.fp == stdin)) { fp 2391 sapi/cgi/cgi_main.c c = fgetc(file_handle.handle.fp); fp 2394 sapi/cgi/cgi_main.c c = fgetc(file_handle.handle.fp); /* skip to end of line */ fp 2398 sapi/cgi/cgi_main.c if (fgetc(file_handle.handle.fp) != '\n') { fp 2399 sapi/cgi/cgi_main.c zend_long pos = zend_ftell(file_handle.handle.fp); fp 2400 sapi/cgi/cgi_main.c zend_fseek(file_handle.handle.fp, pos - 1, SEEK_SET); fp 2405 sapi/cgi/cgi_main.c rewind(file_handle.handle.fp); fp 621 sapi/cli/php_cli.c if (!(file_handle->handle.fp = VCWD_FOPEN(script_file, "rb"))) { fp 628 sapi/cli/php_cli.c c = fgetc(file_handle->handle.fp); fp 629 sapi/cli/php_cli.c if (c == '#' && (c = fgetc(file_handle->handle.fp)) == '!') { fp 631 sapi/cli/php_cli.c c = fgetc(file_handle->handle.fp); /* skip to end of line */ fp 635 sapi/cli/php_cli.c if (fgetc(file_handle->handle.fp) != '\n') { fp 636 sapi/cli/php_cli.c zend_long pos = zend_ftell(file_handle->handle.fp); fp 637 sapi/cli/php_cli.c zend_fseek(file_handle->handle.fp, pos - 1, SEEK_SET); fp 642 sapi/cli/php_cli.c rewind(file_handle->handle.fp); fp 929 sapi/cli/php_cli.c file_handle.handle.fp = stdin; fp 947 sapi/cli/php_cli.c fclose(file_handle.handle.fp); fp 1936 sapi/cli/php_cli_server.c zfd.handle.fp = NULL; fp 2060 sapi/cli/php_cli_server.c zfd.handle.fp = NULL; fp 517 sapi/litespeed/lsapi_main.c FILE * fp; fp 519 sapi/litespeed/lsapi_main.c fp = fopen( SG(request_info).path_translated, "rb" ); fp 520 sapi/litespeed/lsapi_main.c if ( !fp ) fp 525 sapi/litespeed/lsapi_main.c file_handle->handle.fp = fp; fp 849 sapi/litespeed/lsapi_main.c file_handle.handle.fp = VCWD_FOPEN(*p, "rb"); fp 851 sapi/litespeed/lsapi_main.c if ( file_handle.handle.fp ) { fp 860 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 321 sapi/phpdbg/phpdbg_prompt.c FILE *fp = fopen(init_file, "r"); fp 322 sapi/phpdbg/phpdbg_prompt.c if (fp) { fp 328 sapi/phpdbg/phpdbg_prompt.c while (fgets(cmd, PHPDBG_MAX_CMD, fp) != NULL) { fp 336 sapi/phpdbg/phpdbg_prompt.c fclose(fp);