/PHP-7.4/ |
H A D | NEWS | 144 . Fixed bug #81302 (Stream position after stream filter removed). (cmb) 257 . Fixed bug #81092 (fflush before stream_filter_remove corrupts stream). 492 . Fixed bug #77069 (stream filter loses final block of data). (cmb) 539 . Fixed #48725 (Support for flushing in zlib stream). (cmb) 940 . Fixed bug #79468 (SIGSEGV when closing stream handle with a stream filter 1358 . Fixed bug #78340 (Include of stream wrapper not reading whole file). 1561 . Added TLS 1.3 support to streams including new tlsv1.3 stream. 1568 socket-to-stream). (Nikita) 1936 socket-to-stream). (Nikita) 2209 . Fixed bug #77765 (FTP stream wrapper should set the directory as [all …]
|
/PHP-7.4/ext/gd/ |
H A D | gd.c | 1432 php_stream *stream; in PHP_FUNCTION() local 1439 if (stream == NULL) { in PHP_FUNCTION() 1468 php_stream_close(stream); in PHP_FUNCTION() 1479 php_stream_close(stream); in PHP_FUNCTION() 1500 php_stream_close(stream); in PHP_FUNCTION() 1519 php_stream_close(stream); in PHP_FUNCTION() 1522 php_stream_close(stream); in PHP_FUNCTION() 2449 php_stream *stream; in _php_image_create_from() local 2471 if (stream == NULL) { in _php_image_create_from() 2548 php_stream_close(stream); in _php_image_create_from() [all …]
|
/PHP-7.4/ext/phar/ |
H A D | phar.c | 3302 if (file_handle->handle.stream.closer && file_handle->handle.stream.handle) { in phar_compile_file() 3303 file_handle->handle.stream.closer(file_handle->handle.stream.handle); in phar_compile_file() 3305 file_handle->handle.stream.handle = NULL; in phar_compile_file() 3317 file_handle->handle.stream.handle = phar; in phar_compile_file() 3318 file_handle->handle.stream.reader = phar_zend_stream_reader; in phar_compile_file() 3319 file_handle->handle.stream.closer = NULL; in phar_compile_file() 3320 file_handle->handle.stream.fsizer = phar_zend_stream_fsizer; in phar_compile_file() 3321 file_handle->handle.stream.isatty = 0; in phar_compile_file()
|
H A D | phar_object.c | 2901 php_stream *stream; in PHP_METHOD() local 2922 if ((php_stream_from_zval_no_verify(stream, zstub)) != NULL) { in PHP_METHOD()
|
/PHP-7.4/ext/phar/tests/ |
H A D | bug81726.phpt | 13 Warning: fopen(phar://%s): failed to open stream: unable to decompress gzipped phar archive "%s" in…
|
/PHP-7.4/ext/pgsql/ |
H A D | pgsql.c | 3163 php_stream *stream; local 3183 if (!stream) { 3188 php_stream_close(stream); 3191 php_stream_auto_cleanup(stream); 5396 static int php_pgsql_fd_flush(php_stream *stream) /* {{{ */ argument 5404 PGconn *pgsql = (PGconn *) stream->abstract; 5416 PGconn *pgsql = (PGconn *) stream->abstract; 5443 php_stream *stream; local 5454 stream = php_stream_alloc(&php_stream_pgsql_fd_ops, pgsql, NULL, "r"); 5456 if (stream) { [all …]
|
/PHP-7.4/main/streams/ |
H A D | streams.c | 503 stream->wrapper->wops->stream_closer(stream->wrapper, stream); in _php_stream_free() 561 justread = stream->ops->read(stream, chunk_buf, stream->chunk_size); in _php_stream_fill_read_buffer() 603 … memmove(stream->readbuf, stream->readbuf + stream->readpos, stream->writepos - stream->readpos); in _php_stream_fill_read_buffer() 611 stream->readbuf = perealloc(stream->readbuf, stream->readbuflen, in _php_stream_fill_read_buffer() 652 if (stream->readbuf && stream->readbuflen - stream->writepos < stream->chunk_size) { in _php_stream_fill_read_buffer() 654 … memmove(stream->readbuf, stream->readbuf + stream->readpos, stream->writepos - stream->readpos); in _php_stream_fill_read_buffer() 662 if (stream->readbuflen - stream->writepos < stream->chunk_size) { in _php_stream_fill_read_buffer() 664 stream->readbuf = perealloc(stream->readbuf, stream->readbuflen, in _php_stream_fill_read_buffer() 668 justread = stream->ops->read(stream, (char*)stream->readbuf + stream->writepos, in _php_stream_fill_read_buffer() 1132 stream->ops->seek(stream, stream->position, SEEK_SET, &stream->position); in _php_stream_write_buffer() [all …]
|
H A D | cast.c | 199 if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { in _php_stream_cast() 202 stream->ops->seek(stream, stream->position, SEEK_SET, &dummy); in _php_stream_cast() 203 stream->readpos = stream->writepos = 0; in _php_stream_cast() 210 if (stream->stdiocast) { in _php_stream_cast() 220 stream->ops->cast && in _php_stream_cast() 222 stream->ops->cast(stream, castas, ret) == SUCCESS in _php_stream_cast() 263 …if (!php_stream_is_filtered(stream) && stream->ops->cast && stream->ops->cast(stream, castas, NULL… in _php_stream_cast() 264 if (FAILURE == stream->ops->cast(stream, castas, ret)) { in _php_stream_cast() 302 } else if (stream->ops->cast && stream->ops->cast(stream, castas, ret) == SUCCESS) { in _php_stream_cast() 322 if ((stream->writepos - stream->readpos) > 0 && in _php_stream_cast() [all …]
|
/PHP-7.4/ext/standard/tests/streams/ |
H A D | bug81659.phpt | 5 $stream = fopen(__DIR__ . "/81659.txt", "w+"); 8 fwrite($stream, str_repeat("*", 1024)); 11 fseek($stream, 1023 * 1024); 14 var_dump(strlen(stream_get_contents($stream)));
|
/PHP-7.4/ext/libxml/ |
H A D | libxml.c | 694 php_stream *stream; in _php_libxml_external_entity_loader() local 695 php_stream_from_zval_no_verify(stream, &retval); in _php_libxml_external_entity_loader() 696 if (stream == NULL) { in _php_libxml_external_entity_loader() 710 GC_ADDREF(stream->res); in _php_libxml_external_entity_loader() 711 pib->context = stream; in _php_libxml_external_entity_loader()
|
/PHP-7.4/sapi/fpm/fpm/ |
H A D | zlog.c | 356 stream->len = zlog_stream_prefix_ex(stream, stream->function, stream->line); in zlog_stream_unbuffered_write() 435 stream->buf.data[stream->len++] = c; in zlog_stream_buf_copy_char() 455 stream->buf.data + stream->prefix_len, stream->len - stream->prefix_len); in zlog_stream_buf_flush() 472 stream->len = zlog_stream_prefix_ex(stream, stream->function, stream->line); in zlog_stream_buf_append() 501 zlog_stream_prefix_ex(stream, stream->function, stream->line); in zlog_stream_buf_append() 506 stream->len = zlog_truncate_buf(stream->buf.data, stream->len, 0); in zlog_stream_buf_append() 531 (stream->use_fd || stream->use_stderr || stream->use_syslog); in zlog_stream_init_internal() 686 stream->buf.data, stream->buf.size, stream->use_syslog); in zlog_stream_prefix_ex() 702 stream, stream->msg_prefix, stream->msg_prefix_len); in zlog_stream_prefix_ex() 776 zlog_stream_prefix_ex(stream, stream->function, stream->line); in zlog_stream_finish_buffer_suffix() [all …]
|
/PHP-7.4/sapi/fpm/tests/ |
H A D | log-bwp-realloc-buffer.phpt | 2 FPM: bug81513 - Buffered worker output plain log stream reallocation
|
H A D | tester.inc | 1240 * Expect message to be written to FastCGI error stream.
|
/PHP-7.4/main/ |
H A D | main.c | 1612 php_stream *stream = handle; in php_zend_stream_fsizer() local 1617 if (stream->readfilters.head) { in php_zend_stream_fsizer() 1621 if (php_stream_stat(stream, &ssb) == 0) { in php_zend_stream_fsizer() 1637 php_stream *stream = php_stream_open_wrapper((char *)filename, "rb", mode, &opened_path); in php_stream_open_for_zend_ex() local 1638 if (stream) { in php_stream_open_for_zend_ex() 1643 handle->handle.stream.handle = stream; in php_stream_open_for_zend_ex() 1644 handle->handle.stream.reader = (zend_stream_reader_t)_php_stream_read; in php_stream_open_for_zend_ex() 1645 handle->handle.stream.fsizer = php_zend_stream_fsizer; in php_stream_open_for_zend_ex() 1646 handle->handle.stream.isatty = 0; in php_stream_open_for_zend_ex() 1647 handle->handle.stream.closer = php_zend_stream_closer; in php_stream_open_for_zend_ex() [all …]
|
/PHP-7.4/ext/standard/tests/filters/ |
H A D | bug54350.phpt | 10 fclose($this->stream); 21 Warning: fclose(): 5 is not a valid stream resource in %s on line %d 23 Warning: fclose(): supplied resource is not a valid stream resource in %s on line %d
|
H A D | bug81475.phpt | 2 Bug #81475 (stream_isatty emits warning with attached stream wrapper)
|
H A D | bug81302.phpt | 2 Bug #81302 (Stream position after stream filter removed)
|
/PHP-7.4/ext/standard/ |
H A D | user_filters.c | 154 php_stream *stream, in userfilter_filter() argument 176 uint32_t orig_no_fclose = stream->flags & PHP_STREAM_FLAG_NO_FCLOSE; in userfilter_filter() 177 stream->flags |= PHP_STREAM_FLAG_NO_FCLOSE; in userfilter_filter() 183 php_stream_to_zval(stream, &tmp); in userfilter_filter() 255 stream->flags &= ~PHP_STREAM_FLAG_NO_FCLOSE; in userfilter_filter() 256 stream->flags |= orig_no_fclose; in userfilter_filter() 505 php_stream *stream; in PHP_FUNCTION() local 516 php_stream_from_zval(stream, zstream); in PHP_FUNCTION() 518 pbuffer = pemalloc(buffer_len, php_stream_is_persistent(stream)); in PHP_FUNCTION() 522 bucket = php_stream_bucket_new(stream, pbuffer, buffer_len, 1, php_stream_is_persistent(stream)); in PHP_FUNCTION()
|
H A D | filestat.c | 678 php_stream *stream; in PHP_FUNCTION() local 683 stream = php_stream_open_wrapper_ex(filename, "c", REPORT_ERRORS, NULL, NULL); in PHP_FUNCTION() 684 if(stream != NULL) { in PHP_FUNCTION() 685 php_stream_close(stream); in PHP_FUNCTION()
|
/PHP-7.4/ext/zip/ |
H A D | php_zip.c | 143 php_stream *stream; in php_zip_extract_file() local 250 stream = php_stream_open_wrapper(fullpath, "w+b", REPORT_ERRORS, NULL); in php_zip_extract_file() 252 if (stream == NULL) { in php_zip_extract_file() 261 php_stream_write(stream, b, n); in php_zip_extract_file() 264 php_stream_close(stream); in php_zip_extract_file() 2783 php_stream *stream; local 2798 stream = php_stream_zip_open(obj->filename, ZSTR_VAL(filename), mode STREAMS_CC); 2799 if (stream) { 2800 php_stream_to_zval(stream, return_value);
|
/PHP-7.4/ext/fileinfo/ |
H A D | libmagic.patch | 401 + php_stream *stream; 407 + if (stream == NULL) { 428 + php_stream_close(stream); 721 + if (!stream) { 770 + stream = NULL; 844 + if (stream) { 889 + php_stream *stream; 901 + if (!stream) { 926 + if (stream) { 2378 + if (stream) { [all …]
|
/PHP-7.4/TSRM/ |
H A D | tsrm_win32.c | 375 static process_pair *process_get(FILE *stream) in process_get() argument 381 if (ptr->stream == stream) { in process_get() 450 FILE *stream = NULL; in popen_ex() local 588 stream = _fdopen(fno, type); in popen_ex() 590 proc->stream = stream; in popen_ex() 591 return stream; in popen_ex() 594 TSRM_API int pclose(FILE *stream) in pclose() argument 599 if ((process = process_get(stream)) == NULL) { in pclose() 603 fflush(process->stream); in pclose() 604 fclose(process->stream); in pclose() [all …]
|
/PHP-7.4/ext/curl/ |
H A D | interface.c | 177 php_stream *stream; in _php_curl_verify_handlers() local 183 if (stream == NULL) { in _php_curl_verify_handlers() 195 if (stream == NULL) { in _php_curl_verify_handlers() 209 if (stream == NULL) { in _php_curl_verify_handlers() 223 if (stream == NULL) { in _php_curl_verify_handlers() 1798 php_stream *stream; member 2038 ch->handlers->write->stream = source->handlers->write->stream; in _php_setup_easy_copy_handlers() 2043 ch->handlers->read->stream = source->handlers->read->stream; in _php_setup_easy_copy_handlers() 2235 if (!stream->readfilters.head && !php_stream_stat(stream, &ssb)) { in build_mime_structure_from_hash() 2244 cb_arg->stream = stream; in build_mime_structure_from_hash() [all …]
|
/PHP-7.4/ext/imap/ |
H A D | php_imap.c | 771 void mail_getquota(MAILSTREAM *stream, char *qroot, QUOTALIST *qlist) in mail_getquota() argument 799 void mail_getacl(MAILSTREAM *stream, char *mailbox, ACLLIST *alist) in mail_getacl() argument 2492 zval *stream, *out; in PHP_FUNCTION() local 4469 static long _php_rfc822_soutr (void *stream, char *string) in _php_rfc822_soutr() argument 4471 smart_str *ret = (smart_str*)stream; in _php_rfc822_soutr() 4964 if (!f(stream, read, buf)) { in php_mail_gets() 4976 if (f(stream, size, buf)) { in php_mail_gets() 5009 PHP_IMAP_EXPORT void mm_exists(MAILSTREAM *stream, unsigned long number) in mm_exists() argument 5017 PHP_IMAP_EXPORT void mm_flags(MAILSTREAM *stream, unsigned long number) in mm_flags() argument 5197 PHP_IMAP_EXPORT void mm_critical(MAILSTREAM *stream) in mm_critical() argument [all …]
|
/PHP-7.4/ext/opcache/ |
H A D | ZendAccelerator.c | 1003 php_stream *stream = (php_stream *)file_handle->handle.stream.handle; in zend_get_file_handle_timestamp() local 1007 if (!stream || in zend_get_file_handle_timestamp() 1008 !stream->ops || in zend_get_file_handle_timestamp() 1009 !stream->ops->stat) { in zend_get_file_handle_timestamp() 1016 ret = stream->ops->stat(stream, &sb); in zend_get_file_handle_timestamp()
|