php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17903 problem with php_function.c
Submitted: 2002-06-21 12:08 UTC Modified: 2002-06-22 04:21 UTC
From: ab at msedv dot at Assigned:
Status: Closed Package: *Compile Issues
PHP Version: 4.2.1 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ab at msedv dot at
New email:
PHP Version: OS:

 

 [2002-06-21 12:08 UTC] ab at msedv dot at
Hi,

Yesterday I was on the way to install a new lamp system.

BUT during the compilation of php 4.2.1 a problem came up.

ich compiled php with the configure command: --with-apxs2....

and got this:

/bin/sh /tmp/source/php-4.2.1/libtool --silent --mode=compile gcc -I.
-I/tmp/source/php-4.2.1/sapi/apachefilter
-I/tmp/source/php-4.2.1/main -I/tmp/source/php-4.2.1
-I/usr/local/apache/2.0.39/include -I/tmp/source/php-4.2.1/Zend
-I/temp/source/php-4.2.1/ext/mysql/libmysql
-I/temp-source/php-4.2.1/etc/xml/expat -D_REENTRANT

-I/tmp/source/php-4.2.1/TSRM -DTHREAD=1 -g -02 -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 '/tmp/source/php-4.2.1/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/tmp/source/php-4.2.1/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/source/php-4.2.1/sapi'
make: *** [all-recursive] Error 1

now: what's the matter? excuse me sir, but there is no line 93 in my
php_functions.c file - i hope i can read error-msgs :-) -

can you help me please ?!!

mfg
alex braumann.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-21 15:16 UTC] kcarmich at ipapp dot com
#if !MODULE_MAGIC_AT_LEAST
should be 
#if !AP_MODULE_MAGIC_AT_LEAST
 [2002-06-21 15:22 UTC] ab at msedv dot at
yea'

i've read this in a report before, but the funny thing is, that there is no line like that, or send me to the doctor...
 [2002-06-21 18:42 UTC] kcarmich at ipapp dot com
line 93 of 
php-4.2.1/sapi/apache2filter/php_functions.c
should read
#if !AP_MODULE_MAGIC_AT_LEAST(20020506,0)

the old definition of MODULE_MAGIC_AT_LEAST has been altered to force people to update their code to use the new proper macro.
 [2002-06-22 04:21 UTC] derick@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 [2002-07-25 12:56 UTC] a dot p dot mcdermott at rl dot ac dot uk
Just discovered this bug myself today and fixed the file as per the instructions contained here. As with the original poster we used the configure option --with-apxs2. However (a) we are using Solaris 8 so it is not an OS specific bug and (b) we have downloaded php 4.2.2 (as the posting here predates the release I would have expected the fix mentioned here to have been merged into 4.2.2).

Could you confirm that it really has been committed to CVS and that the change to php_function.c will be seen in future releases of php, please?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 13:01:29 2024 UTC