Hi,

the current behavior of cli/cgi defaults, is not really intuitive, allthough correctly 
mentioned in the NEWS entry.

Attached is a very simple patch, that will resolve that issue.

Specifically:
if you specify --enable-cli and don't specify --enable-cgi, then CLI will be installed 
and built. The current behavior, is that CGI will be installed and built, which will 
(and already has) lead to confusion.

-- 
With kind regards,

Melvyn Sopacua
<?php include("not_reflecting_employers_views.txt"); ?>
Index: sapi/cli/config.m4
===================================================================
RCS file: /repository/php4/sapi/cli/config.m4,v
retrieving revision 1.11.2.2
diff -u -r1.11.2.2 config.m4
--- sapi/cli/config.m4  20 Dec 2002 10:04:55 -0000      1.11.2.2
+++ sapi/cli/config.m4  23 Dec 2002 21:07:21 -0000
@@ -10,7 +10,7 @@
 [
   PHP_SAPI_CLI=$enableval
 ],[
-  PHP_SAPI_CLI=yes
+  PHP_SAPI_CLI=default
 ])
 
 if test "$PHP_SAPI_CLI" != "no"; then
Index: sapi/cgi/config9.m4
===================================================================
RCS file: /repository/php4/sapi/cgi/config9.m4,v
retrieving revision 1.1.2.3
diff -u -r1.1.2.3 config9.m4
--- sapi/cgi/config9.m4 19 Dec 2002 16:55:57 -0000      1.1.2.3
+++ sapi/cgi/config9.m4 23 Dec 2002 21:07:21 -0000
@@ -7,7 +7,11 @@
 [
   PHP_SAPI_CGI=$enableval
 ],[
-  PHP_SAPI_CGI=yes
+  if test x"$PHP_SAPI_CLI" = x"default"; then
+    PHP_SAPI_CGI=yes
+  else
+    PHP_SAPI_CGI=no
+  fi
 ])
 
 AC_ARG_ENABLE(force-cgi-redirect,
-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to