Closes GH-5292.
. Fixed bug #79393 (Null coalescing operator failing with SplFixedArray).
(cmb)
+- Standard:
+ . Fixed bug #79410 (system() swallows last chunk if it is exactly 4095 bytes
+ without newline). (Christian Schneider)
+
- Zip:
. Fixed Bug #79296 (ZipArchive::open fails on empty file). (Remi)
b = buf;
}
if (bufl) {
+ /* output remaining data in buffer */
+ if (type == 1 && buf != b) {
+ PHPWRITE(buf, bufl);
+ if (php_output_get_level() < 1) {
+ sapi_flush();
+ }
+ }
/* strip trailing whitespaces if we have not done so already */
if ((type == 2 && buf != b) || type != 2) {
l = bufl;
--- /dev/null
+--TEST--
+Bug #79410 (system() swallows last chunk if it is exactly 4095 bytes without newline)
+--FILE--
+<?php
+ob_start();
+system(getenv('TEST_PHP_EXECUTABLE') . ' -n -r "echo str_repeat(\".\", 4095);"');
+var_dump(strlen(ob_get_clean()));
+?>
+--EXPECT--
+int(4095)