Fix for http://bugs.php.net/bug.php?id=35067.
authorLuca Longinotti <chtekk@gentoo.org>
Fri, 4 Nov 2005 11:19:08 +0000 (11:19 +0000)
committerLuca Longinotti <chtekk@gentoo.org>
Fri, 4 Nov 2005 11:19:08 +0000 (11:19 +0000)
Package-Manager: portage-2.0.53_rc6

dev-lang/php/ChangeLog
dev-lang/php/Manifest
dev-lang/php/files/4.3.11/php4.3.11-globals_overwrite.patch
dev-lang/php/files/4.4.0/php4.4.0-globals_overwrite.patch
dev-lang/php/files/4.4.1/php4.4.1-current_key_by_reference.patch [new file with mode: 0644]
dev-lang/php/files/5.0.4/php5.0.4-globals_overwrite.patch
dev-lang/php/files/5.0.5/php5.0.5-globals_overwrite.patch
dev-lang/php/php-4.4.1-r1.ebuild

index 68e632e3d39e2ba69ccf693af5b02d5296c9373b..84c2e70338b88342b3a4e3af72c074cb10cfd30d 100644 (file)
@@ -1,6 +1,14 @@
 # ChangeLog for dev-lang/php
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/ChangeLog,v 1.51 2005/11/03 23:54:59 chtekk Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/ChangeLog,v 1.52 2005/11/04 11:19:08 chtekk Exp $
+
+  04 Nov 2005; Luca Longinotti <chtekk@gentoo.org>
+  files/4.3.11/php4.3.11-globals_overwrite.patch,
+  files/4.4.0/php4.4.0-globals_overwrite.patch,
+  +files/4.4.1/php4.4.1-current_key_by_reference.patch,
+  files/5.0.4/php5.0.4-globals_overwrite.patch,
+  files/5.0.5/php5.0.5-globals_overwrite.patch, php-4.4.1-r1.ebuild:
+  Fix for http://bugs.php.net/bug.php?id=35067.
 
 *php-4.4.1-r1 (03 Nov 2005)
 
index b6edab2514d60b2a73550add343394ad2db32183..9bb6ead1e4f608ee3ea43ad1c26af1b1bea121a4 100644 (file)
@@ -1,4 +1,4 @@
-MD5 77d8ce70844fee5be60623205d302567 ChangeLog 8608
+MD5 4e347979e1038dbddfe1bba47fb8972a ChangeLog 8979
 MD5 389638f1d46b6c41cd4d87b471572f4b files/4-any/apache-1.3/70_mod_php.conf 484
 MD5 ee36e31632adb08b7abf70f78b5b2125 files/4-any/apache-2.0/70_mod_php.conf 485
 MD5 f0acca9c6387b8ca139d2849665bd16f files/4-any/php4-fastbuild.patch 9012
@@ -10,7 +10,7 @@ MD5 f2ab14c7be0482a4f25fc438fa6f5399 files/4-any/php4-with-iodbc.diff 443
 MD5 09637e8f6f861b1f3698ec0390ec6b57 files/4.3.11/php4.3.11-curl_safemode.patch 5129
 MD5 cb36a386184ed6a887f62d2205f57173 files/4.3.11/php4.3.11-fopen_wrappers.patch 1481
 MD5 4db8e0b66cde22dd4e4d9f51e59f6098 files/4.3.11/php4.3.11-gd_safe_mode.patch 1573
-MD5 480060d9a5de72030e2fce541e2830f8 files/4.3.11/php4.3.11-globals_overwrite.patch 18395
+MD5 89d12226b1726b681df274be79043411 files/4.3.11/php4.3.11-globals_overwrite.patch 18011
 MD5 3f80d0c6c58fd4ea02b7efdf69265721 files/4.3.11/php4.3.11-pcre-security.patch 1667
 MD5 43b4113d1fb159955b0d5ed307cac143 files/4.3.11/php4.3.11-phpinfo_xss.patch 2518
 MD5 48d9c939434e9b01d0696410d59c503c files/4.3.11/php4.3.11-pspell-ext-segf.patch 8482
@@ -18,11 +18,12 @@ MD5 17b906361a7ab8a3008446871623eeae files/4.3.11/php4.3.11-session_save_path-se
 MD5 0429f8334ba4bab659a2e41ce5debc80 files/4.4.0/php4.4.0-curl_safemode.patch 1937
 MD5 cb36a386184ed6a887f62d2205f57173 files/4.4.0/php4.4.0-fopen_wrappers.patch 1481
 MD5 a540c54ba22dc16b157edcf1ecb6258f files/4.4.0/php4.4.0-gd_safe_mode.patch 883
-MD5 ac3e0691fbecf920d030a35bc8e02109 files/4.4.0/php4.4.0-globals_overwrite.patch 10115
+MD5 7c45198e6118d82c680e9ed56e7d1df0 files/4.4.0/php4.4.0-globals_overwrite.patch 9731
 MD5 5f1f48c87cafe0949e73ef064c99e5ed files/4.4.0/php4.4.0-pcre-security.patch 1741
 MD5 57644300fb52ad610fa52ae8ba6b522b files/4.4.0/php4.4.0-phpinfo_xss.patch 1284
 MD5 48d9c939434e9b01d0696410d59c503c files/4.4.0/php4.4.0-pspell-ext-segf.patch 8482
 MD5 83fb9efb602c178741ea2e40e13b014f files/4.4.0/php4.4.0-session_save_path-segf.patch 4132
+MD5 e2dde7269b4d3315f2030622f016478c files/4.4.1/php4.4.1-current_key_by_reference.patch 864
 MD5 7a68ebae340c5eb9fdb97fa8e2e3870f files/4.4.1/php4.4.1-mod_rewrite-crash.patch 940
 MD5 96ed6efe383833dbb880fef3b6c562bb files/5.0-any/apache-1.3/70_mod_php5.conf 524
 MD5 21bc6cc85150b5a5385f213d45efbe67 files/5.0-any/apache-2.0/70_mod_php5.conf 525
@@ -35,7 +36,7 @@ MD5 f2ab14c7be0482a4f25fc438fa6f5399 files/5.0-any/php5-with-iodbc.diff 443
 MD5 9a0a0587350d748d5fbbb3d34da7d488 files/5.0.4/php5.0.4-curl_safemode.patch 5262
 MD5 2eddbf70a0b940789a0e68f029beb2b3 files/5.0.4/php5.0.4-fopen_wrappers.patch 1554
 MD5 89b001b449fdd567ffba6aaf2a3e804f files/5.0.4/php5.0.4-gd_safe_mode.patch 1216
-MD5 923a659668d907e94d093486f7df6b94 files/5.0.4/php5.0.4-globals_overwrite.patch 32692
+MD5 c5e906110383e3e5157ead566c2f5797 files/5.0.4/php5.0.4-globals_overwrite.patch 32308
 MD5 03a57319b93ee44a2fe159a0fb67592e files/5.0.4/php5.0.4-pcre-security.patch 1659
 MD5 2c557f6641927cbf40e25abf71e46a1b files/5.0.4/php5.0.4-phpinfo_xss.patch 2476
 MD5 ab931f65aefab4da99c6353b2c503d70 files/5.0.4/php5.0.4-pspell-ext-segf.patch 9422
@@ -44,7 +45,7 @@ MD5 e157161249ad2b217dc532f5289ba74b files/5.0.4/php5.0.4-xmlrcp-ccode.diff 750
 MD5 3a3e34b20c95ab90b8a9ceeb787462bd files/5.0.5/php5.0.5-curl_safemode.patch 2061
 MD5 9e31c5edb0ded1d57ed90859d3ef168c files/5.0.5/php5.0.5-fopen_wrappers.patch 942
 MD5 8f52c6df24afb096109118582c1bf3eb files/5.0.5/php5.0.5-gd_safe_mode.patch 875
-MD5 fe69695583b11b8be29dd59318f77f68 files/5.0.5/php5.0.5-globals_overwrite.patch 6671
+MD5 54462370e3ddc7b0a1f46509ad43120c files/5.0.5/php5.0.5-globals_overwrite.patch 6287
 MD5 b95f630e058c1b0f9cc47e186ef182cf files/5.0.5/php5.0.5-obj-serialize.patch 1364
 MD5 ab931f65aefab4da99c6353b2c503d70 files/5.0.5/php5.0.5-pspell-ext-segf.patch 9422
 MD5 8845848ffde7cfee1a3f57f6feaae8dd files/5.0.5/php5.0.5-session_save_path-segf.patch 4090
@@ -64,6 +65,6 @@ MD5 96fdb35fc6f5b775c569db88d89200d7 files/digest-php-5.0.5-r3 143
 MD5 c58d07ca1c1235bbad9bccaec96fc062 metadata.xml 157
 MD5 dd4e596a3be26f261e3a5a52330f9b2d php-4.3.11-r3.ebuild 9240
 MD5 466de8a0d0e1860f4487428a1c7106d5 php-4.4.0-r3.ebuild 9235
-MD5 08c3a9a0ec9cb4a249f8ed4041914757 php-4.4.1-r1.ebuild 7874
+MD5 1f67a51ce9e57a180ad4db2017ede648 php-4.4.1-r1.ebuild 7991
 MD5 6e8ab5a55a1bc9eda90d0f8fa7e93b32 php-5.0.4-r3.ebuild 6293
 MD5 6ad12146831f0ab9b9bae8a5f6bfe566 php-5.0.5-r3.ebuild 5654
index d3eb55c5ee3e75aaafc716082cc0fe6e71c8111e..fea8c7a1ec504f2071a1e37e896508e31378d18d 100644 (file)
  
  #if HAVE_ARPA_INET_H
  # include <arpa/inet.h>
-@@ -813,8 +802,8 @@
-       PHP_FE(prev,                                    first_arg_force_ref)
-       PHP_FE(next,                                    first_arg_force_ref)
-       PHP_FE(reset,                                   first_arg_force_ref)
--      PHP_FE(current,                                 first_arg_force_ref)
--      PHP_FE(key,                                             first_arg_force_ref)
-+      PHP_FE(current,                                 NULL)
-+      PHP_FE(key,                                     NULL)
-       PHP_FE(min,                                                                                                                             NULL)
-       PHP_FE(max,                                                                                                                             NULL)
-       PHP_FE(in_array,                                                                                                                NULL)
 @@ -944,6 +933,13 @@
  static void php_putenv_destructor(putenv_entry *pe)
  {
index 3aefaee1629544da481e8caee9eccc7e4c17d19a..3b13cd71966ccbecbc9e086f692733c38b92a334 100644 (file)
  
  #if HAVE_ARPA_INET_H
  # include <arpa/inet.h>
-@@ -813,8 +802,8 @@
-       PHP_FE(prev,                                    first_arg_force_ref)
-       PHP_FE(next,                                    first_arg_force_ref)
-       PHP_FE(reset,                                   first_arg_force_ref)
--      PHP_FE(current,                                 first_arg_force_ref)
--      PHP_FE(key,                                             first_arg_force_ref)
-+      PHP_FE(current,                                 NULL)
-+      PHP_FE(key,                                     NULL)
-       PHP_FE(min,                                                                                                                             NULL)
-       PHP_FE(max,                                                                                                                             NULL)
-       PHP_FE(in_array,                                                                                                                NULL)
 @@ -3038,11 +3027,25 @@
        prefix = va_arg(args, char *);
        prefix_len = va_arg(args, uint);
diff --git a/dev-lang/php/files/4.4.1/php4.4.1-current_key_by_reference.patch b/dev-lang/php/files/4.4.1/php4.4.1-current_key_by_reference.patch
new file mode 100644 (file)
index 0000000..cf3754d
--- /dev/null
@@ -0,0 +1,22 @@
+--- ext/standard/basic_functions.c     2005/09/29 16:31:48     1.543.2.51.2.3
++++ ext/standard/basic_functions.c     2005/11/02 17:58:00     1.543.2.51.2.4
+@@ -17,7 +17,7 @@
+    +----------------------------------------------------------------------+
+  */
+
+-/* $Id: basic_functions.c,v 1.543.2.51.2.3 2005/09/29 16:31:48 iliaa Exp $ */
++/* $Id: basic_functions.c,v 1.543.2.51.2.4 2005/11/02 17:58:00 iliaa Exp $ */
+
+ #include "php.h"
+ #include "php_streams.h"
+@@ -802,8 +802,8 @@ function_entry basic_functions[] = {
+       PHP_FE(prev,                                    first_arg_force_ref)
+       PHP_FE(next,                                    first_arg_force_ref)
+       PHP_FE(reset,                                   first_arg_force_ref)
+-      PHP_FE(current,                                 NULL)
+-      PHP_FE(key,                                     NULL)
++      PHP_FE(current,                                 first_arg_force_ref)
++      PHP_FE(key,                                     first_arg_force_ref)
+       PHP_FE(min,                                                                                                                             NULL)
+       PHP_FE(max,                                                                                                                             NULL)
+       PHP_FE(in_array,                                                                                                                NULL)
index 02a9a83eff0c43e24382d733b04771f4f8d762bf..426273bb75757ed8ed03caac92b3f547458f504a 100644 (file)
  
        PHP_FE(ini_get,                                                                                                                 NULL)
        PHP_FE(ini_get_all,                                                                                                             NULL)
-@@ -743,8 +743,8 @@
-       PHP_FE(prev,                                    first_arg_force_ref)
-       PHP_FE(next,                                    first_arg_force_ref)
-       PHP_FE(reset,                                   first_arg_force_ref)
--      PHP_FE(current,                                 first_arg_force_ref)
--      PHP_FE(key,                                             first_arg_force_ref)
-+      PHP_FE(current,                                 NULL)
-+      PHP_FE(key,                                     NULL)
-       PHP_FE(min,                                                                                                                             NULL)
-       PHP_FE(max,                                                                                                                             NULL)
-       PHP_FE(in_array,                                                                                                                NULL)
 @@ -930,7 +930,6 @@
        BG(user_tick_functions) = NULL;
        BG(user_filter_map) = NULL;
index cdae541d5eef2955970d159bf1ae123feb5e6eea..20cedc94c5884fbd60a26ee860364238b512f94f 100644 (file)
  
  #include "php.h"
  #include "php_streams.h"
-@@ -742,8 +743,8 @@
-       PHP_FE(prev,                                    first_arg_force_ref)
-       PHP_FE(next,                                    first_arg_force_ref)
-       PHP_FE(reset,                                   first_arg_force_ref)
--      PHP_FE(current,                                 first_arg_force_ref)
--      PHP_FE(key,                                             first_arg_force_ref)
-+      PHP_FE(current,                                 NULL)
-+      PHP_FE(key,                                     NULL)
-       PHP_FE(min,                                                                                                                             NULL)
-       PHP_FE(max,                                                                                                                             NULL)
-       PHP_FE(in_array,                                                                                                                NULL)
 @@ -3076,11 +3077,25 @@
        prefix = va_arg(args, char *);
        prefix_len = va_arg(args, uint);
index 049e0b0463fdd99f93d3cd6ddb50ba120208358c..e8cceb708d83ddd60f68f7930bdda6b6650a720e 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-4.4.1-r1.ebuild,v 1.1 2005/11/03 23:54:59 chtekk Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-4.4.1-r1.ebuild,v 1.2 2005/11/04 11:19:08 chtekk Exp $
 
 IUSE="cgi cli discard-path force-cgi-redirect"
 KEYWORDS="~x86"
@@ -82,6 +82,9 @@ src_unpack() {
        # patch crash with mod_rewrite in Apache2 SAPI, mentioned in bug #111032
        epatch "${FILESDIR}/4.4.1/php4.4.1-mod_rewrite-crash.patch"
 
+       # fix for http://bugs.php.net/bug.php?id=35067
+       epatch "${FILESDIR}/4.4.1/php4.4.1-current_key_by_reference.patch"
+
        # we call the eclass src_unpack, but don't want ${A} to be unpacked again
        PHP_PACKAGE=0
        php4_4-sapi_src_unpack