php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26474 error
Submitted: 2003-11-30 13:06 UTC Modified: 2003-11-30 13:11 UTC
From: hammicool at yahoo dot co dot in Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.2.2 OS: linux 9
Private report: No CVE-ID: None
 [2003-11-30 13:06 UTC] hammicool at yahoo dot co dot in
Description:
------------
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-apache2=/usr/src/redhat/SOURCES/httpd-2.0.40   --with-mysql --enable-sigchild --with-oracle=/disc/u01/app/oracle/product/9.2.0.1.0/  --with-oci8=/disc/u01/app/oracle/product/9.2.0.1.0/ --with-pgsql=shared

-----------------------
-------------------------------------------------
--------------------------------------------------------
$make
------------------------------------------------------
----------------------------------------------------------------------
  
/*----------------------edited by me --------------------*/
 error before editing the sapi/apache2filter/sapi_apache2.c
/*----------------------------------------------------*/


NT -I/usr/src/redhat/SOURCES/php-4.2.2/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -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'
make[3]: *** [sapi_apache2.lo] Error 1
make[3]: Leaving directory `/usr/src/redhat/SOURCES/php-4.2.2/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/SOURCES/php-4.2.2/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/SOURCES/php-4.2.2/sapi'
make: *** [all-recursive] Error 1

/*--------------------------edited by me (hameed)---------------------*/

     this error getting after i changed the file  sapi/apache2filter/sapi_apache2.c 's two functions argument that default is
   


   ap_register_output_filter("PHP", php_output_filter,AP_FTYPE_RESOURCE);
  ap_register_input_filter("PHP", php_input_filter,AP_FTYPE_RESOURCE);
         

   i added a NULL value as an an argument after getting an help from net

    ap_register_output_filter("PHP", php_output_filter, NULL, AP_FTYPE_RESOURCE);
    ap_register_input_filter("PHP", php_input_filter, NULL, AP_FTYPE_RESOURCE);
 
then i got an error given below 
/*------------------------------------------------------------------*/

---after editing sapi/apache2filter/sapi_apache2.c
$make

make[1]: Entering directory `/usr/src/redhat/SOURCES/php-4.2.2/sapi'
Making all in apache2filter
make[2]: Entering directory `/usr/src/redhat/SOURCES/php-4.2.2/sapi/apache2filter'
make[3]: Entering directory `/usr/src/redhat/SOURCES/php-4.2.2/sapi/apache2filter'
/bin/sh /usr/src/redhat/SOURCES/php-4.2.2/libtool --silent --mode=compile gcc  -I. -I/usr/src/redhat/SOURCES/php-4.2.2/sapi/apache2filter -I/usr/src/redhat/SOURCES/php-4.2.2/main -I/usr/src/redhat/SOURCES/php-4.2.2 -I/usr/local/apache2/include -I/usr/src/redhat/SOURCES/php-4.2.2/Zend -I/usr/src/redhat/SOURCES/php-4.2.2/ext/mysql/libmysql -I/disc/u01/app/oracle/product/9.2.0.1.0//rdbms/public -I/disc/u01/app/oracle/product/9.2.0.1.0//rdbms/demo -I/disc/u01/app/oracle/product/9.2.0.1.0//plsql/public -I/usr/src/redhat/SOURCES/php-4.2.2/ext/xml/expat  -D_REENTRANT -I/usr/src/redhat/SOURCES/php-4.2.2/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic  -c php_functions.c
php_functions.c:93:27: missing binary operator before '('
make[3]: *** [php_functions.lo] Error 1
make[3]: Leaving directory `/usr/src/redhat/SOURCES/php-4.2.2/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/SOURCES/php-4.2.2/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/SOURCES/php-4.2.2/sapi'
make: *** [all-recursive] Error 1


down you'll see !MODULES_XXXXX  Change that to !AP_MODULES



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-30 13:11 UTC] sniper@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

With PHP 4.3.4 this works just fine..

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 01:01:28 2024 UTC