ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-install
php-install
Re: [PHP-INST] Re: php 4.2.2, apache 2.0.40 make problem from source
by =?ISO-8859-1?Q?Laurent_Larqu=E8re?= other posts by this author
Aug 15 2002 11:23PM messages near this date
Re: [PHP-INST] Re: php 4.2.2, apache 2.0.40 make problem from source | [PHP-INST] php with mysql problem
i have inserted a simple NULL as third argument
and all goes well (Sol8/Sparc)

alex stinson wrote:

>  i think i might have found why it might not be working (im not really 
>  a good coder yet, so this was more of a look around for things that 
>  could cause it, and browsed the apache code)...it seems that 
>  ap_register_input_filter, and ap_register_output_filter are missing 
>  arguments...
>  in the apache source, under include/util_filter.h
>  is:
>  AP_DECLARE(ap_filter_rec_t *) ap_register_input_filter(const char 
>  *name, ap_in_filter_func filter_func, ap_init_filter_func filter_init, 
>  ap_filter_type ftype);
>  so its declared with 4 arguments, but in sapi_apache2.c 
>  (php-4.2.2/sapi/apache2filter/sapi_apache2.c, line 534+), it only is:
>  ap_register_input_filter("PHP",php_input_filter,AP_FTYPE_RESOURCE);
> 
>  so, to anyone who actually knows what they are doing, what exactly is 
>  supposed to be inbetween the 'php_input_filter', and 'AP_FTYPE'? above 
>  says 'ap_init_filter_func', but i have no idea what that is
> 
>  --Pete Rippe
> 
> 
>  From: "Daniel Eckstein" <tweeg@[...].net>
>  To: "Alex Stinson" <stinsonalex@[...].com>
>  Subject: Re: php 4.2.2, apache 2.0.40 make problem from source
>  Date: Thu, 15 Aug 2002 22:46:55 +0200
> 
>  Hi,
> 
>  this is correctly the same, what is happening to me
>  on a solaris 8 box.
> 
>  Regards,
>  Tweeg
> 
>  ----- Original Message -----
>  From: "Alex Stinson" <stinsonalex@[...].com>
>  Newsgroups: php.install
>  To: <php-install@[...].net>
>  Sent: Tuesday, August 13, 2002 7:11 AM
>  Subject: php 4.2.2, apache 2.0.40 make problem from source
> 
> 
>  > hey, i have a small problem, and i'm not exactly sure how to work 
>  around
>  it
>  > involving php4.2.2, and apache 2.0.40
>  >
>  > uname -a:
>  > FreeBSD wsip68-15-48-50.ri.ri.cox.net 4.6-RELEASE FreeBSD 
>  4.6-RELEASE #0:
>  > Tue Jun 11 06:14:12 GMT 2002
>  > murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC  i386
>  >
>  > The result of running make after configuring an almost clean source
>  > (modifyed only the AP_MODULE_MAGIC code that needs to be changed to work
>  > with apache2) with the following:
>  > ./configure --with-tsrm-pth --with-mysql --with-apxs2=/usr/www/bin/apxs
>  > everything worked fine until i upgraded to apache 2.0.40 (actually, just
>  > removed the entire /usr/www directory after a problem)...
>  >
>  > Making all in apache2filter
>  > /bin/sh /usr/php-4.2.2/libtool --silent --mode=compile gcc  -I.
>  > -I/usr/php-4.2.2/sapi/apache2filter -I/usr/php-4.2.2/main 
>  -I/usr/php-4.2.2
>  > -I/usr/www/include -I/usr/php-4.2.2/Zend 
>  -I/usr/php-4.2.2/ext/mysql/libmys
>  ql
>  > -I/usr/php-4.2.2/ext/xml/expat  -D_REENTRANT -D_THREAD_SAFE
>  > -I/usr/php-4.2.2/TSRM -I/usr/local/include -DTHREAD=1 -g -O2 
>  -pthread -DZT
>  S
>  > -prefer-pic  -c sapi_apache2.c
>  > sapi_apache2.c: In function `php_register_hook':
>  > sapi_apache2.c:534: warning: passing arg 3 of 
>  `ap_register_output_filter'
>  > makes pointer from integer without a cast
>  > sapi_apache2.c:534: too few arguments to function
>  > `ap_register_output_filter'
>  > sapi_apache2.c:535: warning: passing arg 3 of 
>  `ap_register_input_filter'
>  > makes pointer from integer without a cast
>  > sapi_apache2.c:535: too few arguments to function
>  `ap_register_input_filter'
>  > *** Error code 1
>  >
>  > Stop in /usr/php-4.2.2/sapi/apache2filter.
>  > *** Error code 1
>  >
>  > Stop in /usr/php-4.2.2/sapi/apache2filter.
>  > *** Error code 1
>  >
>  > Stop in /usr/php-4.2.2/sapi.
>  > *** Error code 1
>  >
>  > Stop in /usr/php-4.2.2.
>  >
>  >
>  > _________________________________________________________________
>  > Send and receive Hotmail on your mobile device: http://mobile.msn.com
>  >
> 
> 
> 
> 
>  _________________________________________________________________
>  Send and receive Hotmail on your mobile device: http://mobile.msn.com
> 
> 


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
alex stinson
Ken Jeansson
Rasmus Lerdorf
=?ISO-8859-1?Q?Laurent_Larqu=E8re?=

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved