From 3b13e88830322caeecc90fda2303793ce627a395 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Tue, 8 Aug 2023 15:27:50 +0200 Subject: [PATCH] Fix GH-2209: update return value and changelog of stream_set_chunk_size() --- .../functions/stream-set-chunk-size.xml | 34 ++++++++++++++++--- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/reference/stream/functions/stream-set-chunk-size.xml b/reference/stream/functions/stream-set-chunk-size.xml index e9462499e5e7..56f1ffa0565c 100644 --- a/reference/stream/functions/stream-set-chunk-size.xml +++ b/reference/stream/functions/stream-set-chunk-size.xml @@ -45,20 +45,44 @@ Returns the previous chunk size on success. - - Will return &false; if size is less than 1 or - greater than PHP_INT_MAX. - &reftitle.errors; - Will emit an E_WARNING level error if size + A ValueError is thrown if size is less than 1 or greater than PHP_INT_MAX. + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + PHP 8.0.0 + + A ValueError is now thrown if + size is less than 1 or greater than + PHP_INT_MAX. Previously, an + E_WARNING level error was emitted and &false; was + returned. + + + + + + + +