php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40010 bug 39787 broken by copyright year bump
Submitted: 2007-01-03 12:19 UTC Modified: 2007-01-03 18:52 UTC
From: prlw1 at cam dot ac dot uk Assigned:
Status: Closed Package: Apache2 related
PHP Version: 6CVS-2007-01-03 (CVS) OS: all
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: prlw1 at cam dot ac dot uk
New email:
PHP Version: OS:

 

 [2007-01-03 12:19 UTC] prlw1 at cam dot ac dot uk
Description:
------------
Sadly bug 39787 should be reopened, as bumping the copyright year 
has changed the MODULE_MAGIC_NUMBER_MAJOR, breaking the patch.
 
e.g., try
cvs diff -r1.47 -r1.48 -u sapi/apache2filter/php_functions.c
(same for sapi/apache2handler/php_functions.c)
 
At least, it is fixed for the apache 2 versions which will be released
after September 2007!



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-03 18:34 UTC] prlw1 at cam dot ac dot uk
Just to make it obvious, here is the fix:

Note, thanks to the interesting web interface, ^I means
ascii 9 tab throughout...

Index: apache2filter/php_functions.c
===================================================================
RCS file: /repository/php-src/sapi/apache2filter/php_functions.c,v
retrieving revision 1.48
diff -u -r1.48 php_functions.c
--- apache2filter/php_functions.c^I1 Jan 2007 09:29:36 -0000^I1.48
+++ apache2filter/php_functions.c^I3 Jan 2007 18:29:09 -0000
@@ -289,7 +289,7 @@
 
 static char *php_apache_get_version()
 {
-#if MODULE_MAGIC_NUMBER_MAJOR >= 20070905
+#if MODULE_MAGIC_NUMBER_MAJOR >= 20060905
 ^Ireturn (char *) ap_get_server_banner();
 #else
 ^Ireturn (char *) ap_get_server_version();
Index: apache2handler/php_functions.c
===================================================================
RCS file: /repository/php-src/sapi/apache2handler/php_functions.c,v
retrieving revision 1.28
diff -u -r1.28 php_functions.c
--- apache2handler/php_functions.c^I1 Jan 2007 09:29:36 -0000^I1.28
+++ apache2handler/php_functions.c^I3 Jan 2007 18:29:10 -0000
@@ -333,7 +333,7 @@
 
 static char *php_apache_get_version()
 {
-#if MODULE_MAGIC_NUMBER_MAJOR >= 20070905
+#if MODULE_MAGIC_NUMBER_MAJOR >= 20060905
 ^Ireturn (char *) ap_get_server_banner();
 #else
 ^Ireturn (char *) ap_get_server_version();
 [2007-01-03 18:52 UTC] tony2001@php.net
Fixed in CVS, thanks for the heads up.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 04 08:01:28 2024 UTC