PHP 4.0 Bug #7943: --with-mod-dav compile failure (details+fix)

From: Date: Thu, 23 Nov 2000 13:09:08 +0000
Subject: PHP 4.0 Bug #7943: --with-mod-dav compile failure (details+fix)
Groups: php.dev 
Request: Send a blank email to php-dev+get-39002@lists.php.net to get a copy of this message
From: astmail@yahoo.com Operating system: Linux 2.2 PHP version: 4.0.3pl1 PHP Bug Type: Compile Failure Bug description: --with-mod-dav compile failure (details+fix) Basically a duplicate of #7843 with detailed infos and fixes: Required source patches (beware of the wraps): =========================================================== --- cmp/php-4.0.3pl1/ext/dav/dav.c Sat Jun 24 17:31:06 2000 +++ src/php-4.0.3pl1/ext/dav/dav.c Sun Nov 12 19:10:00 2000 @@ -150,7 +150,7 @@ } -PHP_MINFO_FUNCTION(phpdav); +PHP_MINFO_FUNCTION(phpdav) { php_info_print_table_start(); php_info_print_table_row(2, "DAV Support", "enabled"); --- cmp/php-4.0.3pl1/ext/dav/php_dav.h Mon Jul 24 03:39:43 2000 +++ src/php-4.0.3pl1/ext/dav/php_dav.h Sun Nov 12 19:07:11 2000 @@ -23,6 +23,8 @@ #if HAVE_MOD_DAV +#include <httpd.h> + typedef struct { int foo; char *mkcol_test_handler; diff -ru cmp/php-4.0.3pl1/sapi/apache/mod_php4.c src/php-4.0.3pl1/sapi/apache/mod_php4.c --- cmp/php-4.0.3pl1/sapi/apache/mod_php4.c Sat Oct 14 22:06:20 2000 +++ src/php-4.0.3pl1/sapi/apache/mod_php4.c Sun Nov 12 20:41:54 2000 @@ -743,7 +743,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) =========================================================== Other required steps: Copy mod_dav.h from the mod_dav source directory to the apache include directory (usually /usr/local/apache/include), then use the following switch for php configuration: --with-mod-dav=/usr/local/apache/include Note: Only build test was done, no functional test! -- Edit Bug report at: http://bugs.php.net/?id=7943&edit=1

« previous php.dev (#39002) next »