PHP 4.0 Bug #4716: DAV fails to compile unlessed patched
| From: | hetzels at westbend dot net | Date: | Wed, 31 May 2000 04:17:00 +0000 |
| Subject: | PHP 4.0 Bug #4716: DAV fails to compile unlessed patched | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-19833@lists.php.net to get a copy of this message | ||
From: hetzels@westbend.net
Operating system: FreeBSD 4.0
PHP version: 4.0.0 Release
PHP Bug Type: Compile Failure
Bug description: DAV fails to compile unlessed patched
When you try to compile the PHP with support for the dav module, it fails to compile. By applying
the below patches gets the module to compile.
diff --exclude=CVS --exclude=.#* -ruN php4.orig/ext/dav/dav.c php4/ext/dav/dav.c
--- php4.orig/ext/dav/dav.c Tue May 23 04:33:34 2000
+++ php4/ext/dav/dav.c Sat May 27 22:12:31 2000
@@ -157,7 +157,7 @@
}
-PHP_MINFO_FUNCTION(phpdav);
+PHP_MINFO_FUNCTION(phpdav)
{
php_info_print_table_start();
php_info_print_table_row(2, "DAV Support", "enabled");
diff --exclude=CVS --exclude=.#* -ruN php4.orig/ext/dav/php_dav.h php4/ext/dav/php_dav.h
--- php4.orig/ext/dav/php_dav.h Fri Dec 17 14:54:48 1999
+++ php4/ext/dav/php_dav.h Sat May 27 21:16:16 2000
@@ -34,6 +34,8 @@
# if HAVE_MOD_DAV
+#include "httpd.h"
+
typedef struct {
int foo;
char *mkcol_test_handler;
diff --exclude=CVS --exclude=.#* -ruN php4.orig/sapi/apache/mod_php4.c php4/sapi/apache/mod_php4.c
--- php4.orig/sapi/apache/mod_php4.c Fri May 26 13:43:09 2000
+++ php4/sapi/apache/mod_php4.c Sat May 27 21:01:02 2000
@@ -713,7 +713,7 @@
conf = (php_apache_info_struct *) get_module_config(r->per_dir_config,
&php4_module);
- return send_php(r, 0, 0, conf->dav_script);
+ return send_php(r, 0, conf->dav_script);
}
static int php_type_checker(request_rec *r)