|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17828 Parse error in line 93 of php_functions.c
Submitted: 2002-06-19 00:39 UTC Modified: 2002-06-19 02:26 UTC
From: jcampbel at lynn dot ci-n dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.1 OS: Linux 2.4.18
Private report: No CVE-ID: None
 [2002-06-19 00:39 UTC] jcampbel at lynn dot ci-n dot com
PHP build with the below configuration options, built for Apache 2.0.39, fails with a parse error on line 93 of sapi/apache2filter/php_functions.c, which reads:
#if !MODULE_MAGIC_AT_LEAST(20020506,0)

MODULE_MAGIC_AT_LEAST is #defined in the Apache headers as "old_broken_macro_we_hope_you_are_not_using". It looks to me like that line should be changed to:
#if !AP_MODULE_MAGIC_AT_LEAST(20020506,0)

Doing so allows it to compile, and apparently work.

'./configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-mailparse' '--enable-mbstring' '--enable-mbregex' '--enable-sockets' '--with-openssl' '--with-zlib' '--with-bz2' '--with-db' '--with-db2' '--with-db3' '--with-mysql' '--with-pgsql'


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-19 02:26 UTC]
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at In case this was a documentation 
problem, the fix will show up soon at
In case this was a website problem, the change will show
up on the site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.

This is already fixed in CVS, try

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Jan 29 03:03:35 2022 UTC