sas Mon Feb 10 21:25:02 2003 EDT
Modified files: (Branch: PHP_4)
/php4/sapi/apache config.m4 mod_php4.c
Log:
MFH BUFF check
Index: php4/sapi/apache/config.m4
diff -u php4/sapi/apache/config.m4:1.62 php4/sapi/apache/config.m4:1.62.6.1
--- php4/sapi/apache/config.m4:1.62 Thu Jul 25 14:37:16 2002
+++ php4/sapi/apache/config.m4 Mon Feb 10 21:25:01 2003
@@ -1,5 +1,5 @@
dnl
-dnl $Id: config.m4,v 1.62 2002/07/25 18:37:16 sniper Exp $
+dnl $Id: config.m4,v 1.62.6.1 2003/02/11 02:25:01 sas Exp $
dnl
AC_MSG_CHECKING(for Apache 1.x module support via DSO through APXS)
@@ -212,6 +212,19 @@
PHP_SUBST(APACHE_INSTALL)
PHP_SUBST(STRONGHOLD)
+AC_CACHE_CHECK([for member fd in BUFF *],ac_cv_php_fd_in_buff,[
+ save=$CPPFLAGS
+ CPPFLAGS="$CPPFLAGS $APACHE_INCLUDE"
+ AC_TRY_COMPILE([#include <httpd.h>],[conn_rec *c; int fd = c->client->fd;],[
+ ac_cv_php_fd_in_buff=yes],[ac_cv_php_fd_in_buff=no],[ac_cv_php_fd_in_buff=no])
+ CPPFLAGS=$save
+],[
+ if test "$ac_cv_php_fd_in_buff" = "yes"; then
+ AC_DEFINE(PHP_APACHE_HAVE_CLIENT_FD, 1, [ ])
+ fi
+])
+
+
AC_MSG_CHECKING(for mod_charset compatibility option)
AC_ARG_WITH(mod_charset,
[ --with-mod_charset Enable transfer tables for mod_charset (Rus Apache).],
Index: php4/sapi/apache/mod_php4.c
diff -u php4/sapi/apache/mod_php4.c:1.146.2.3.2.2
php4/sapi/apache/mod_php4.c:1.146.2.3.2.3
--- php4/sapi/apache/mod_php4.c:1.146.2.3.2.2 Sun Feb 9 16:24:27 2003
+++ php4/sapi/apache/mod_php4.c Mon Feb 10 21:25:01 2003
@@ -17,7 +17,7 @@
| PHP 4.0 patches by Zeev Suraski <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: mod_php4.c,v 1.146.2.3.2.2 2003/02/09 21:24:27 sas Exp $ */
+/* $Id: mod_php4.c,v 1.146.2.3.2.3 2003/02/11 02:25:01 sas Exp $ */
#include "php_apache_http.h"
#include "http_conf_globals.h"
@@ -348,6 +348,7 @@
*/
static int sapi_apache_get_fd(int *nfd TSRMLS_DC)
{
+#if PHP_APACHE_HAVE_CLIENT_FD
request_rec *r = SG(server_context);
int fd;
@@ -357,6 +358,7 @@
if (nfd) *nfd = fd;
return SUCCESS;
}
+#endif
return FAILURE;
}
/* }}} */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php