Bug #75836 [NEW]: fwrite() should accept null for chunk size

From: Date: Wed, 17 Jan 2018 16:48:48 +0000
Subject: Bug #75836 [NEW]: fwrite() should accept null for chunk size
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213591@lists.php.net to get a copy of this message
From:             kelunik
Operating system: 
PHP version:      7.2.1
Package:          Streams related
Bug Type:         Bug
Bug description:fwrite() should accept null for chunk size

Description:
------------
This is a follow-up of bug #74719, which didn't address fwrite().

See
https://github.com/amphp/byte-stream/blob/1b0b8daed484b070a9ee329ba78675288d291558/lib/ResourceOutputStream.php#L69-L74
for an example where this is annoying.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=75836&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=75836&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=75836&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=75836&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=75836&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=75836&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=75836&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=75836&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=75836&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=75836&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=75836&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=75836&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=75836&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=75836&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75836&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=75836&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=75836&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=75836&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75836&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=75836&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=75836&r=mysqlcfg



Thread (7 messages)

« previous php.bugs (#213591) next »