#45612 [NEW]: server version of php should ignore first line starting with #!
| From: | ganswijk at xs4all dot nl | Date: | Thu, 24 Jul 2008 00:51:02 +0000 |
| Subject: | #45612 [NEW]: server version of php should ignore first line starting with #! | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-127223@lists.php.net to get a copy of this message | ||
From: ganswijk at xs4all dot nl
Operating system: unix
PHP version: 5.2.6
PHP Bug Type: Feature/Change Request
Bug description: server version of php should ignore first line starting with #!
Description:
------------
Perhaps it's a good idea to let the server version of php ignore the first
line of a script when it starts with '#!'.
That way you can write a script that can serve as a batch script and as a
server version of the script which is completely identical and not have the
server version show the first line starting with '#!' in the browser
screen.
It would also be nice to know which criterium a script should use to
determine if it's running as a server script or as a CLI script. Currently
I'm considering using $_SERVER or using some test on $argv.
--
Edit bug report at http://bugs.php.net/?id=45612&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45612&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45612&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45612&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45612&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45612&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45612&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45612&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45612&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45612&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45612&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45612&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45612&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45612&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45612&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45612&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45612&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45612&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45612&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45612&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45612&r=mysqlcfg