php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17833 sapi/apache2filter/php_functions.c does not compile
Submitted: 2002-06-19 08:19 UTC Modified: 2002-06-19 08:29 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: jguilla at attglobal dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.1 OS: Linux RH 7.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jguilla at attglobal dot net
New email:
PHP Version: OS:

 

 [2002-06-19 08:19 UTC] jguilla at attglobal dot net
Hi,

I seems that the latest version of Apache2 (2.0.39) just issued brokes the compilation of sapi/apache2filter/php_functions.c. It seems like the macro MODULE_MAGIC_AT_LEAST has been obsoleted. I've looked at the apache 2 header files and found that ap_mnh.h defines MODULE_MAGIC_AT_LEAST as garbage. It seems that the macro to use now is AP_MODULE_MAGIC_AT_LEAST. I've modified the source and it seems to compile and run OK, but I'm not neither an apache nor php hacker, so perhaps the "fix" is not complete or is incorrect at all. Please take into account that 2.0.39 has been release to fix a vulnerability, so the issue has to be reviewed by someone whith more knowledge than me.

Perhaps you'll find useful this output from diff -U2:

--- php-4.2.1/sapi/apache2filter/php_functions.c        Sat May 11 11:49:54 2002
+++ php-4.2.1-old/sapi/apache2filter/php_functions.c    Wed Jun 19 13:29:27 2002
@@ -91,5 +91,5 @@
                ADD_LONG(mtime);
                ADD_LONG(clength);
-#if !MODULE_MAGIC_AT_LEAST(20020506,0)
+#if !AP_MODULE_MAGIC_AT_LEAST(20020506,0)
                ADD_STRING(boundary);
 #endif

Keep up that great work!


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-19 08:22 UTC] jguilla at attglobal dot net
Hmmm... I've named the directories to diff incorrectly, but the patch is correct: MODULE_MAGIC_AT_LEAST doesn't work, AP_MODULE_MAGIC_AT_LEAST *seems* to work.
 [2002-06-19 08:29 UTC] sniper@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-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 21:00:02 2026 UTC