From:             techtonik at tut dot by
Operating system: 
PHP version:      Irrelevant
PHP Bug Type:     Feature/Change Request
Bug description:  Merge CLI and CGI functionality

Description:
------------
I know that it is strange request and for developers it is more difficult
to support two different functionalities in one binary, but..

For a long run PHP had this two .exe messing around and often it was quite
easy to mention CLI instead of CGI and vice versa. With PHP5 CLI version
becomes default and CGI migrated into directory. In PHP4 in directory was
CLI version. Although it is quite easy to remember, it is rather hard to
explain users what is CGI or CLI, why their php.exe is incorrect and where
to find another php.exe. Often they just replace CGI with CLI (with
"correct" version, ehh)  and after upgrade to the story begins anew.

I know that this is not so easy, but if there were a voting systems for
proposals I bet this one would be in the first 20. I propose to leave
default behavior as CGI and use "-f" key to execute script in CLI mode. Of
course, it is more convenient to leave default mode to CLI, but it can
probably  lead to incompatibilities with CGI specification.

Reproduce code:
---------------
CGI behavior
php.exe file.php

CLI
php.exe -f file.php



-- 
Edit bug report at http://bugs.php.net/?id=30056&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30056&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30056&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30056&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30056&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30056&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30056&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30056&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30056&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30056&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30056&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30056&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30056&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30056&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30056&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30056&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30056&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30056&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30056&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30056&r=mysqlcfg

Reply via email to