Lines Matching refs:fp

176 	php_stream *fp;  in phar_file_action()  local
212 fp = phar_get_efp(info, 1 TSRMLS_CC); in phar_file_action()
214 if (!fp) { in phar_file_action()
223 fp = phar_get_efp(info, 1 TSRMLS_CC); in phar_file_action()
229 got = php_stream_read(fp, buf, MIN(8192, info->uncompressed_filesize - position)); in phar_file_action()
1432 php_stream *fp; member
1444 php_stream *fp; local
1474 php_stream_from_zval_no_verify(fp, value);
1476 if (!fp) {
1707 fp = php_stream_open_wrapper(fname, "rb", STREAM_MUST_SEEK|0, &opened);
1709 if (!fp) {
1738 php_stream_close(fp);
1761 php_stream_close(fp);
1772 php_stream_close(data->internal_file->fp);
1775 data->internal_file->fp = NULL;
1777 data->internal_file->offset_abs = data->internal_file->offset = php_stream_tell(p_obj->fp);
1778 data->fp = NULL;
1779 phar_stream_copy_to_stream(fp, p_obj->fp, PHP_STREAM_COPY_ALL, &contents_len);
1781 php_stream_tell(p_obj->fp) - data->internal_file->offset;
1785 php_stream_close(fp);
1902 pass.fp = php_stream_fopen_tmpfile();
1903 if (pass.fp == NULL) {
1913 php_stream_close(pass.fp);
1925 phar_obj->arc.archive->ufp = pass.fp;
1938 php_stream_close(pass.fp);
1986 pass.fp = php_stream_fopen_tmpfile();
1987 if (pass.fp == NULL) {
1993 phar_obj->arc.archive->ufp = pass.fp;
2000 php_stream_close(pass.fp);
2046 static int phar_copy_file_contents(phar_entry_info *entry, php_stream *fp TSRMLS_DC) /* {{{ */
2066 offset = php_stream_tell(fp);
2073 …if (SUCCESS != phar_stream_copy_to_stream(phar_get_efp(link, 0 TSRMLS_CC), fp, link->uncompressed_…
2081 entry->cfp = entry->fp;
2082 entry->fp = NULL;
2199 (*pphar)->fp = phar->fp;
2200 phar->fp = NULL;
2324 phar->fp = php_stream_fopen_tmpfile();
2325 if (phar->fp == NULL) {
2355 php_stream_close(phar->fp);
2376 if (FAILURE == phar_copy_file_contents(&newentry, phar->fp TSRMLS_CC)) {
2378 php_stream_close(phar->fp);
2425 if (phar->fp) {
2426 php_stream_close(phar->fp);
3601 php_stream_close(newentry.fp);
3735 contents_len = php_stream_write(data->fp, cont_str, cont_len);
3745 phar_stream_copy_to_stream(contents_file, data->fp, PHP_STREAM_COPY_ALL, &contents_len);
3987 php_stream *fp; local
4000 …if (phar_obj->arc.archive->fp && !phar_obj->arc.archive->is_brandnew && !(stub->flags & PHAR_ENT_C…
4001 fp = phar_obj->arc.archive->fp;
4003 if (!(fp = php_stream_open_wrapper(phar_obj->arc.archive->fname, "rb", 0, NULL))) {
4011 filter = php_stream_filter_create(filter_name, NULL, php_stream_is_persistent(fp) TSRMLS_CC);
4019 php_stream_filter_append(&fp->readfilters, filter);
4023 if (!fp) {
4029 php_stream_seek(fp, stub->offset_abs, SEEK_SET);
4038 if (phar_obj->arc.archive->fp && !phar_obj->arc.archive->is_brandnew) {
4039 fp = phar_obj->arc.archive->fp;
4041 fp = php_stream_open_wrapper(phar_obj->arc.archive->fname, "rb", 0, NULL);
4044 if (!fp) {
4050 php_stream_rewind(fp);
4054 if (len != php_stream_read(fp, buf, len)) {
4055 if (fp != phar_obj->arc.archive->fp) {
4056 php_stream_close(fp);
4069 if (fp != phar_obj->arc.archive->fp) {
4070 php_stream_close(fp);
4199 php_stream *fp; local
4329 fp = php_stream_open_wrapper(fullpath, "w+b", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL);
4331 fp = php_stream_open_wrapper(fullpath, "w+b", REPORT_ERRORS, NULL);
4334 if (!fp) {
4348 php_stream_close(fp);
4356 php_stream_close(fp);
4360 …if (SUCCESS != phar_stream_copy_to_stream(phar_get_efp(entry, 0 TSRMLS_CC), fp, entry->uncompresse…
4363 php_stream_close(fp);
4367 php_stream_close(fp);
4387 php_stream *fp; local
4403fp = php_stream_open_wrapper(phar_obj->arc.archive->fname, "rb", IGNORE_URL|STREAM_MUST_SEEK, &act…
4405 if (!fp) {
4412 php_stream_close(fp);
4944 php_stream *fp; local
4972 if (!(fp = phar_get_efp(link, 0 TSRMLS_CC))) {
4980 …Z_STRLEN_P(return_value) = php_stream_copy_to_mem(fp, &(Z_STRVAL_P(return_value)), link->uncompres…
5171 if (!entry_obj->ent.entry->fp) {