[php] update patch for libzip

Remi Collet remi at fedoraproject.org
Fri Apr 27 17:02:38 UTC 2012


commit 2b5968ad35e67043cdc452c59628ecb870ab1a97
Author: remi <fedora at famillecollet.com>
Date:   Fri Apr 27 19:01:16 2012 +0200

    update patch for libzip

 ...m-libzip.patch => php-5.4.1-system-libzip.patch |   62 ++++++++++----------
 php.spec                                           |    2 +-
 2 files changed, 32 insertions(+), 32 deletions(-)
---
diff --git a/php-5.4.0-system-libzip.patch b/php-5.4.1-system-libzip.patch
similarity index 91%
rename from php-5.4.0-system-libzip.patch
rename to php-5.4.1-system-libzip.patch
index 84e629b..331e3d0 100644
--- a/php-5.4.0-system-libzip.patch
+++ b/php-5.4.1-system-libzip.patch
@@ -1,6 +1,6 @@
-diff -up php-5.4.0RC6/ext/zip/config.m4.systzip php-5.4.0RC6/ext/zip/config.m4
---- php-5.4.0RC6/ext/zip/config.m4.systzip	2008-08-08 11:47:15.000000000 +0200
-+++ php-5.4.0RC6/ext/zip/config.m4	2012-01-27 16:29:51.644828525 +0100
+diff -up php-5.4.1/ext/zip/config.m4.systzip php-5.4.1/ext/zip/config.m4
+--- php-5.4.1/ext/zip/config.m4.systzip	2012-04-24 18:47:33.000000000 +0200
++++ php-5.4.1/ext/zip/config.m4	2012-04-27 18:54:23.478299744 +0200
 @@ -13,88 +13,129 @@ fi
  PHP_ARG_WITH(pcre-dir, pcre install prefix,
  [  --with-pcre-dir           ZIP: pcre install prefix], no, no)
@@ -196,9 +196,9 @@ diff -up php-5.4.0RC6/ext/zip/config.m4.systzip php-5.4.0RC6/ext/zip/config.m4
  
    dnl so we always include the known-good working hack.
    PHP_ADD_MAKEFILE_FRAGMENT
-diff -up php-5.4.0RC6/ext/zip/php_zip.c.systzip php-5.4.0RC6/ext/zip/php_zip.c
---- php-5.4.0RC6/ext/zip/php_zip.c.systzip	2012-01-01 14:15:04.000000000 +0100
-+++ php-5.4.0RC6/ext/zip/php_zip.c	2012-01-27 16:36:31.815846485 +0100
+diff -up php-5.4.1/ext/zip/php_zip.c.systzip php-5.4.1/ext/zip/php_zip.c
+--- php-5.4.1/ext/zip/php_zip.c.systzip	2012-04-24 18:47:33.000000000 +0200
++++ php-5.4.1/ext/zip/php_zip.c	2012-04-27 18:56:31.797302815 +0200
 @@ -29,8 +29,232 @@
  #include "ext/standard/php_string.h"
  #include "ext/pcre/php_pcre.h"
@@ -456,7 +456,7 @@ diff -up php-5.4.0RC6/ext/zip/php_zip.c.systzip php-5.4.0RC6/ext/zip/php_zip.c
  		if (zip_delete(intern, cur_idx) == -1) {
 @@ -2863,7 +3095,11 @@ static PHP_MINFO_FUNCTION(zip)
  	php_info_print_table_row(2, "Zip", "enabled");
- 	php_info_print_table_row(2, "Extension Version","$Id: php_zip.c 321634 2012-01-01 13:15:04Z felipe $");
+ 	php_info_print_table_row(2, "Extension Version","$Id$");
  	php_info_print_table_row(2, "Zip version", PHP_ZIP_VERSION_STRING);
 -	php_info_print_table_row(2, "Libzip version", "0.9.0");
 +#if defined(HAVE_LIBZIP)
@@ -467,9 +467,9 @@ diff -up php-5.4.0RC6/ext/zip/php_zip.c.systzip php-5.4.0RC6/ext/zip/php_zip.c
  
  	php_info_print_table_end();
  }
-diff -up php-5.4.0RC6/ext/zip/php_zip.h.systzip php-5.4.0RC6/ext/zip/php_zip.h
---- php-5.4.0RC6/ext/zip/php_zip.h.systzip	2012-01-01 14:15:04.000000000 +0100
-+++ php-5.4.0RC6/ext/zip/php_zip.h	2012-01-27 16:29:51.646828525 +0100
+diff -up php-5.4.1/ext/zip/php_zip.h.systzip php-5.4.1/ext/zip/php_zip.h
+--- php-5.4.1/ext/zip/php_zip.h.systzip	2012-04-24 18:47:33.000000000 +0200
++++ php-5.4.1/ext/zip/php_zip.h	2012-04-27 18:54:23.479299744 +0200
 @@ -28,7 +28,11 @@ extern zend_module_entry zip_module_entr
  #include "TSRM.h"
  #endif
@@ -482,24 +482,9 @@ diff -up php-5.4.0RC6/ext/zip/php_zip.h.systzip php-5.4.0RC6/ext/zip/php_zip.h
  
  #define PHP_ZIP_VERSION_STRING "1.9.1"
  
-diff -up php-5.4.0RC6/ext/zip/zip_stream.c.systzip php-5.4.0RC6/ext/zip/zip_stream.c
---- php-5.4.0RC6/ext/zip/zip_stream.c.systzip	2011-02-01 15:43:52.000000000 +0100
-+++ php-5.4.0RC6/ext/zip/zip_stream.c	2012-01-27 16:29:51.647828525 +0100
-@@ -6,7 +6,11 @@
- #if HAVE_ZIP
- #ifdef ZEND_ENGINE_2
- 
-+#if defined(HAVE_LIBZIP)
-+#include <zip.h>
-+#else
- #include "lib/zip.h"
-+#endif
- 
- #include "php_streams.h"
- #include "ext/standard/file.h"
-diff -up php-5.4.0RC6/ext/zip/tests/bug38943.phpt.systzip php-5.4.0RC6/ext/zip/tests/bug38943.phpt
---- php-5.4.0RC6/ext/zip/tests/bug38943.phpt.systzip	2012-01-27 17:12:40.717943831 +0100
-+++ php-5.4.0RC6/ext/zip/tests/bug38943.phpt	2012-01-27 17:14:53.645949787 +0100
+diff -up php-5.4.1/ext/zip/tests/bug38943.phpt.systzip php-5.4.1/ext/zip/tests/bug38943.phpt
+--- php-5.4.1/ext/zip/tests/bug38943.phpt.systzip	2012-04-24 18:47:33.000000000 +0200
++++ php-5.4.1/ext/zip/tests/bug38943.phpt	2012-04-27 18:54:23.480299744 +0200
 @@ -27,7 +27,7 @@ array(1) {
    [0]=>
    int(1)
@@ -509,9 +494,9 @@ diff -up php-5.4.0RC6/ext/zip/tests/bug38943.phpt.systzip php-5.4.0RC6/ext/zip/t
    ["test":"myZip":private]=>
    int(0)
    ["testp"]=>
-diff -up php-5.4.0RC6/ext/zip/tests/pecl12414.phpt.systzip php-5.4.0RC6/ext/zip/tests/pecl12414.phpt
---- php-5.4.0RC6/ext/zip/tests/pecl12414.phpt.systzip	2012-01-27 17:18:29.077959450 +0100
-+++ php-5.4.0RC6/ext/zip/tests/pecl12414.phpt	2012-01-27 17:19:02.679960964 +0100
+diff -up php-5.4.1/ext/zip/tests/pecl12414.phpt.systzip php-5.4.1/ext/zip/tests/pecl12414.phpt
+--- php-5.4.1/ext/zip/tests/pecl12414.phpt.systzip	2012-04-24 18:47:33.000000000 +0200
++++ php-5.4.1/ext/zip/tests/pecl12414.phpt	2012-04-27 18:54:23.481299744 +0200
 @@ -5,6 +5,8 @@ Bug #12414 ( extracting files from damag
  /*$ */
  if(!extension_loaded('zip')) die('skip');
@@ -521,3 +506,18 @@ diff -up php-5.4.0RC6/ext/zip/tests/pecl12414.phpt.systzip php-5.4.0RC6/ext/zip/
  --FILE--
  <?php
  $filename = 'MYLOGOV2.GFX';
+diff -up php-5.4.1/ext/zip/zip_stream.c.systzip php-5.4.1/ext/zip/zip_stream.c
+--- php-5.4.1/ext/zip/zip_stream.c.systzip	2012-04-24 18:47:33.000000000 +0200
++++ php-5.4.1/ext/zip/zip_stream.c	2012-04-27 18:54:23.479299744 +0200
+@@ -6,7 +6,11 @@
+ #if HAVE_ZIP
+ #ifdef ZEND_ENGINE_2
+ 
++#if defined(HAVE_LIBZIP)
++#include <zip.h>
++#else
+ #include "lib/zip.h"
++#endif
+ 
+ #include "php_streams.h"
+ #include "ext/standard/file.h"
diff --git a/php.spec b/php.spec
index d3273ff..3a0a460 100644
--- a/php.spec
+++ b/php.spec
@@ -86,7 +86,7 @@ Patch42: php-5.3.1-systzdata-v8.patch
 # See http://bugs.php.net/53436
 Patch43: php-5.4.0-phpize.patch
 # Use system libzip instead of bundled one
-Patch44: php-5.4.0-system-libzip.patch
+Patch44: php-5.4.1-system-libzip.patch
 
 # Fixes for tests
 


More information about the scm-commits mailing list