1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.4' into PHP-8.5

This commit is contained in:
David Carlier
2025-10-02 12:31:59 +01:00
3 changed files with 1529 additions and 619 deletions

2135
NEWS

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,11 @@
--TEST--
GH-19705 segmentation fault with non writable stream at stream_filter_append call.
--EXTENSIONS--
zlib
--FILE--
<?php
$fh = fopen('data://text/plain,', 'w+',);
var_dump(stream_filter_append($fh, 'zlib.deflate',STREAM_FILTER_WRITE));
?>
--EXPECTF--
resource(%d) of type (stream filter)

View File

@@ -1296,7 +1296,7 @@ PHPAPI int _php_stream_flush(php_stream *stream, int closing)
{
int ret = 0;
if (stream->writefilters.head) {
if (stream->writefilters.head && stream->ops->write) {
_php_stream_write_filtered(stream, NULL, 0, closing ? PSFS_FLAG_FLUSH_CLOSE : PSFS_FLAG_FLUSH_INC );
}