PHP 4.0 Bug #3557: C syntax error
| From: | zeekamotay at hotmail dot com | Date: | Mon, 21 Feb 2000 22:58:50 +0000 |
| Subject: | PHP 4.0 Bug #3557: C syntax error | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-15771@lists.php.net to get a copy of this message | ||
From: zeekamotay@hotmail.com
Operating system: RH 6.1
PHP version: 4.0 Latest CVS (21/02/2000)
PHP Bug Type: Compile Failure
Bug description: C syntax error
This is actually for beta4pl1, but there's no option in the selector for it yet...
ext/dav/php_dav.h, line 46, reads:
<pre>
int phpdav_mkcol_test_handler(request_rec *);
</pre>
It should read:
<pre>
int phpdav_mkcol_test_handler(request_rec *r);
</pre>
I also had to add
<pre>
#include "httpd.h"
</pre>
to the start of that file in order to define the request_rec struct. In addition, ext/dav/dav.c,
line 159, reads:
<pre>
PHP_MINFO_FUNCTION(phpdav);
</pre>
It should read:
<pre>
PHP_MINFO_FUNCTION(phpdav)
</pre>
Making these changes allow the module to compile, but there are still some warnings about making
ints from pointers without casting.