php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18734 Compile fails with php_functions.c:93:27: missing binary operator before '!'
Submitted: 2002-08-04 12:23 UTC Modified: 2002-08-04 12:51 UTC
From: gobucks at ev1 dot net Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.2.2 OS: Linux kernel 2.4.18
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gobucks at ev1 dot net
New email:
PHP Version: OS:

 

 [2002-08-04 12:23 UTC] gobucks at ev1 dot net
I configure PHP using :

./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs

make dies with :

php_functions.c:93:27: missing binary operator before '!'

Looking at php_functions.c there is a definition of MODULE_MAGIC_AT_LEAST(), but grepping the source tree doesn't seem to find where it would be defined.  I changed it to be consistent with other MAGIC_MODULE comparisons:

#if MODULE_MAGIC_NUMBER < 20020506

and everything seems to work.

Troy Tanzer

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-04 12:51 UTC] sander@php.net
To build the Apache 2 module, you need the latest CVS of both PHP and Apache 2.
 [2002-08-06 08:15 UTC] antonio dot conte at weebex dot net
As Troy, compiling for apxs2, i've had the error
php_unctions.c:93:27: missing binary operator before '!'.
Using:  
#if MODULE_MAGIC_NUMBER < 20020506
the make program fails.

Instead, I've used:  
#if !MODULE_MAGIC_AT_LEAST == (20020506,0)
and make was ok.

I'm not a c programmer so, my solutions is good? Make and 
make install was ok!!

hi
Antonio Conte
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 22:00:01 2026 UTC