php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18596 Use of dead macro MODULE_MAGIC_AT_LEAST
Submitted: 2002-07-26 11:35 UTC Modified: 2002-07-26 11:36 UTC
From: smkelly at creighton dot edu Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.2 OS: HP-UX 11i
Private report: No CVE-ID: None
 [2002-07-26 11:35 UTC] smkelly at creighton dot edu
While attempting to build PHP 4.2.2 with Apache 2 support, I ran across this problem on HP-UX 11i. You are using a macro that Apache deems as dead, thus causing a nasty compiler error.
In sapi/apache2filter/php_functions.c:93, you have:
#if !MODULE_MAGIC_AT_LEAST(20020506,0)
but this should be changed to:
#if !AP_MODULE_MAGIC_AT_LEAST(20020506,0)

You can see this by looking at Apache 2.0.39:
# find . -name "*.h"| xargs grep MODULE_MAGIC_AT_LEAST
./include/ap_mmn.h:#define MODULE_MAGIC_AT_LEAST old_broken_macro_we_hope_you_are_not_using

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-26 11:36 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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 03:01:28 2024 UTC