[php-src] Issue #11042: stream_copy_to_stream's $offset should be nullable.

From: Date: Sun, 09 Apr 2023 11:57:57 +0000
Subject: [php-src] Issue #11042: stream_copy_to_stream's $offset should be nullable.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244157@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11042 Author: divinity76 ### Description imo it should have been null-by-default since the beginning, only seeking if the user want it to seek for some reason, but i suspect that would be too much of a BC-break to fix today, however, $offset should be nullable, i should be able to do ```php stream_copy_to_stream(... offset:null); ``` instead of ```php stream_copy_to_stream(... offset: ftell($in)); ```

« previous php.bugs (#244157) next »