php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7943 --with-mod-dav compile failure (details+fix)
Submitted: 2000-11-23 08:09 UTC Modified: 2000-11-29 04:53 UTC
From: astmail at yahoo dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.3pl1 OS: Linux 2.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: astmail at yahoo dot com
New email:
PHP Version: OS:

 

 [2000-11-23 08:09 UTC] astmail at yahoo dot com
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!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-23 11:23 UTC] astmail at yahoo dot com
mod-dav support is solidly broken as mod_dav-1.0.2 (current version) doesn't contain any of the hooks required by php anymore. I do strongly suggest to remove php mod-dav support as this is definitely a continuing source of bug reports and doesn't seem to be supported anymore.

 [2000-11-29 04:53 UTC] sniper@php.net
dav-extension needs to be rewritten completely.
And this is known issue already.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 15:01:31 2024 UTC