|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchessystem_4095_bytes.patch (last revision 2020-03-25 08:23 UTC by cschneid@php.net)Pull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2020-03-24 22:59 UTC] cmb@php.net
-Status: Open
+Status: Verified
[2020-03-24 23:00 UTC] cmb@php.net
[2020-03-25 08:23 UTC] cschneid@php.net
[2020-03-25 09:51 UTC] nikic@php.net
[2020-03-25 09:51 UTC] nikic@php.net
-Status: Verified
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 23:00:01 2025 UTC |
Description: ------------ When executing a program where the output's last chunk is 4095 bytes then the last chunk is swallowed. The script below generates 4095 dots on Linux and counts how many system()'s output contain. None of the dots reach the output, a patch resolving this issue is attached. The bug could already be reproduced in 5.3.0, I did not trace it back farther than that. Test script: --------------- # Execute command print 4095 dots php -r 'system("printf .%.0s {1..4095}");' | wc -c Expected result: ---------------- 4095 Actual result: -------------- 0