ID:          30056
 Updated by:  [EMAIL PROTECTED]
 Reported By: techtonik at tut dot by
-Status:      Open
+Status:      Wont fix
 Bug Type:    Feature/Change Request
 PHP Version: Irrelevant
 New Comment:

You are at least one year to late. Now such a change would introduce a
major BC problem for both versions. Also it is not so easily to merge
them because they are in fact very different. Just read the docs and be
done. If some users don't read it and get a problem, well than it is
their problem.


Previous Comments:
------------------------------------------------------------------------

[2004-09-10 21:26:07] techtonik at tut dot by

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 this bug report at http://bugs.php.net/?id=30056&edit=1

Reply via email to