From: abk at avatartechnology dot com Operating system: Windows 2003 PHP version: 4.3.8 PHP Bug Type: Program Execution Bug description: popen: 'b' flag broken in Linux, not defaulted in Windows
Description: ------------ It appears that popen($command, 'r') DOES translate newlines on Windows 2003 -- contrary to documentation of fopen that implies it should default to binary mode. Changing the mode to 'rb' fixes the problem, but generates a warning and fails to open the pipe on Linux: Warning: popen(/usr/bin/unzip -p "/home/web/aktestb.avatartech.com/public/media_libraries/config_import.cic",rb): Invalid argument -- Edit bug report at http://bugs.php.net/?id=30990&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30990&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30990&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30990&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30990&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30990&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30990&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30990&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30990&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30990&r=support Expected behavior: http://bugs.php.net/fix.php?id=30990&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30990&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30990&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30990&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30990&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30990&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30990&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30990&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30990&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30990&r=mysqlcfg