From: [EMAIL PROTECTED] Operating system: Any PHP version: 4CVS-2002-12-30 (dev) PHP Bug Type: *General Issues Bug description: CGI/CLI '#!php' handler doesn't skip LF if CR present
a real simple one... in the cli sapi (checked latest in cvs) will check the first byte for '#' to see if it should skip past a script parser line... it will skip until it reaches CR or LF, but if it hits CR, the LF is left as the first byte to be executed by the engine, so the script produces output. example... #!c:\php4\php-cli.exe -c c:\php4\ [CR] [LF] <? ?>[EOF] will produce output - the LF. mostly a windows issue, but since i send code back and forth from unix & windows machines, sometimes i may have cr/lf in them - and it this would break there as well. -benjamin -- Edit bug report at http://bugs.php.net/?id=21297&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21297&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21297&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21297&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21297&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21297&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21297&r=support Expected behavior: http://bugs.php.net/fix.php?id=21297&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21297&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21297&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21297&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21297&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21297&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21297&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21297&r=gnused