]> granicus.if.org Git - php/commitdiff
Hidden the existance of CLI SAPI by:
authorEdin Kadribasic <edink@php.net>
Mon, 25 Mar 2002 17:02:30 +0000 (17:02 +0000)
committerEdin Kadribasic <edink@php.net>
Mon, 25 Mar 2002 17:02:30 +0000 (17:02 +0000)
- removing the NEWS entry
- removing cli from make install chain
- marking it EXPERIMENTAL
- reverting installed name of cgi from php-cgi to php

Marged max_execution_time override from head.
# I really hope that people who found cli to be "inconsistent" and
# "unstable" will find time to help rectify those problems.

NEWS
sapi/cgi/config.m4
sapi/cli/EXPERIMENTAL [new file with mode: 0644]
sapi/cli/README
sapi/cli/config.m4
sapi/cli/php_cli.c

diff --git a/NEWS b/NEWS
index 6de568daad89e57f637714e458876fa1b014028f..a461f6db13a9bac92ff5f78383895fd5616248af 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -4,12 +4,6 @@ PHP 4                                                                      NEWS
 - ATTENTION!! register_globals defaults to 'off' now !!!
 - Modified the mysql extension to disable 'LOAD LOCAL' when safe mode is
   enabled. (Jason)
-- Added CLI (command line interface) sapi which is more suitable for writing 
-  shell scripts. Some of the differences to CGI sapi are: no HTTP headers, 
-  plain text error messages, does not change working directory, have a new -r
-  option which executes a piece of PHP code directly from the commmand line, etc.
-  "make install" will install CLI SAPI version of php in {PREFIX}/bin/php while
-  CGI is renamed and installed as {PREFIX}/bin/php-cgi. (Edin)
 - Fixed HTTP file upload support to handle big files better. (Jani)
 - Major modifications to the Sockets Extension and its API (Jason):
   . Fixed numerous bugs.
index 04519d404e02db3797edf1d4e4d3da49beacc35d..364f07e58b03f758f358d716903a1755980cb0a4 100644 (file)
@@ -64,7 +64,7 @@ if test "$PHP_SAPI" = "cgi"; then
 fi
 
 if test "$PHP_SAPI" = "cgi" ; then
-  INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_PROGRAM \$(INSTALL_ROOT)\$(bindir)/php-cgi"
+  INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_PROGRAM \$(INSTALL_ROOT)\$(bindir)/php"
 fi
 
 AC_MSG_CHECKING(for fhttpd module support)
diff --git a/sapi/cli/EXPERIMENTAL b/sapi/cli/EXPERIMENTAL
new file mode 100644 (file)
index 0000000..462d301
--- /dev/null
@@ -0,0 +1,3 @@
+this module is experimental,
+its feature set and behaviour can change.
+you have been warned!
index ed89e9700637dc6a98d28c2145ad6a30320ed443..040e224cb03018e1dee6e98f37e0ce1918a8cec7 100644 (file)
@@ -13,3 +13,6 @@ The main differences between the two:
 * Plain text error message
 * $argc and $argv registered irrespective of register_globals
 * implicit_flush always on
+* -r option which allows execution of PHP code directly from
+  the command line (e.g. php -r 'echo md5("test");' )
+* max_execution_time is set to unlimited, overriding php.ini setting.
index 83aef7b2bbe35aa8a886c8ff9f11e431ecda853f..96d67c3c5215b910f0263973e9f2a9cc8d94a19d 100644 (file)
@@ -16,9 +16,7 @@ AC_ARG_ENABLE(cli,
 [PHP_SAPI_CLI=yes]
 )
 
-if test "$PHP_SAPI_CLI" != "no"; then
-  INSTALL_IT="$INSTALL_IT; \$(INSTALL) -m 0755 sapi/cli/php \$(INSTALL_ROOT)\$(bindir)/php"
-else
+if test "$PHP_SAPI_CLI" = "no"; then
   PHP_DISABLE_CLI
 fi
 
index e51340a2623ed3b9835c0fb47aac1faa6682e3b8..33b31f840fbbd17b0e9d72eab21e16156b7060d7 100644 (file)
@@ -396,6 +396,7 @@ int main(int argc, char *argv[])
                SG(options) |= SAPI_OPTION_NO_CHDIR;
         zend_alter_ini_entry("html_errors", 12, "0", 1, PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);
                zend_alter_ini_entry("implicit_flush", 15, "1", 1, PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);
+               zend_alter_ini_entry("max_execution_time", 19, "0", 1, PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);
 
                while ((c = ap_php_getopt(argc, argv, OPTSTRING)) != -1) {
                        switch (c) {