From:             hammicool at yahoo dot co dot in
Operating system: linux 9
PHP version:      4.3.2
PHP Bug Type:     Apache2 related
Bug description:  error

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



-- 
Edit bug report at http://bugs.php.net/?id=26474&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26474&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26474&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26474&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26474&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26474&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=26474&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=26474&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26474&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26474&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26474&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26474&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26474&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26474&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26474&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26474&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26474&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26474&r=float

Reply via email to