Bug #80282 [NEW]: cannot send binary data to popen

From: Date: Sat, 24 Oct 2020 18:19:31 +0000
Subject: Bug #80282 [NEW]: cannot send binary data to popen
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229903@lists.php.net to get a copy of this message
From: vanherkmarcel at gmail dot com Operating system: Windows PHP version: 7.4.11 Package: Filesystem function related Bug Type: Bug Bug description:cannot send binary data to popen Description: ------------ I am attempting to send binary data to a process openened with popen under windows. However, any 0x0a is appended with a 0x0d, and there is no option to turn this of: popen($exe, 'wb') fails. Test script: --------------- $handle = popen($exe, 'w'); fwrite($handle, file_get_contents($_FILES['filetoupload']['tmp_name'])); pclose($handle) Expected result: ---------------- Data is transmitted as is without interference Actual result: -------------- 0x0a replaced by 0x0a 0x0d -- Edit bug report at https://bugs.php.net/bug.php?id=80282&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80282&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80282&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80282&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80282&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80282&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80282&r=support Expected behavior: https://bugs.php.net/fix.php?id=80282&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80282&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80282&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80282&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80282&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80282&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80282&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80282&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80282&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80282&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80282&r=mysqlcfg

« previous php.bugs (#229903) next »