php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12143 compile problem with apxs2
Submitted: 2001-07-13 11:02 UTC Modified: 2001-07-13 11:12 UTC
From: atreju14 at wanado dot fr Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.6 OS: linux 2.4.6
Private report: No CVE-ID: None
 [2001-07-13 11:02 UTC] atreju14 at wanado dot fr
I've tryed to compile php for apache 2.0.16, heres the 
error I got : 
sapi_apache2.c: In function `php_input_filter':
sapi_apache2.c:248: too many arguments to function 
`ap_get_brigade'
sapi_apache2.c: In function `php_output_filter':
sapi_apache2.c:337: too many arguments to function 
`ap_save_brigade'
sapi_apache2.c: In function `php_register_hook':
sapi_apache2.c:443: warning: passing arg 2 of 
`ap_register_input_filter' from incompatible pointer type

I took a look at this file and at util_filter.h from 
apache's include dir and found out that only three args 
are necessary to ap_get_brigade. I've looked a bit more at 
the code and tryed this modification on sapi_apache2.c :

if ((rv = ap_get_brigade(f->next, bb, mode)) != 
APR_SUCCESS) {

aparently it now works (I managed to display php pages 
after that...)

It's now up to the php developpers hands and brains to see 
if my modification is interresting or not.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-13 11:12 UTC] sas@php.net
Please use a more recent version such as httpd-2.0.18. The API has changed and PHP only supports the latest version.
 [2002-02-19 20:39 UTC] a dot whyte at cqu dot edu dot au
This bug exists with the "latest" version of Apache 2 (2.0.32). and PHP 4.1.1.

So I think the API has probably changed yet again.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 00:01:30 2024 UTC