public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php] private-php86: - update to 5.5.0beta4
@ 2026-11-27  7:26 Remi Collet
  0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-11-27  7:26 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/php
            Branch : private-php86
            Commit : ba9375f409f6d889b1bd326969c58b9f833599a7
            Author : Remi Collet <remi@fedoraproject.org>
            Date   : 2013-04-25T14:44:23+02:00
            Stats  : +542/-680 in 7 file(s)
            URL    : https://src.fedoraproject.org/rpms/php/c/ba9375f409f6d889b1bd326969c58b9f833599a7?branch=private-php86

            Log:
            - update to 5.5.0beta4
- zend_extension doesn't requires full path
- refresh patch for system libzip
- drop opcache patch merged upstream
- add BuildRequires libvpx-devel for WebP support in php-gd
- php-fpm own /usr/share/fpm

---
diff --git a/.gitignore b/.gitignore
index f4f6f63..64fa975 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,21 +1,8 @@
 clog
 php.spec~
-php-5.3*.bz2
-/php-5.4.4.tar.bz2
-/php-5.4.5.tar.bz2
-/php-5.4.6.tar.bz2
-/php-5.4.7.tar.bz2
-/php-5.4.8.tar.bz2
-/php-5.4.9RC1.tar.bz2
-/php-5.4.9.tar.bz2
-/php-5.4.10.tar.bz2
-/php-5.4.11RC1.tar.bz2
-/php-5.4.11.tar.bz2
-/php-5.4.12RC1.tar.bz2
-/php-5.4.12RC2.tar.bz2
-/php-5.4.12.tar.bz2
-/php-5.4.13RC1.tar.bz2
-/php-5.4.13.tar.bz2
+php-5.3.*.bz2
+php-5.4.*.bz2
 /php-5.5.0beta1.tar.xz
 /php-5.5.0beta2.tar.xz
 /php-5.5.0beta3.tar.xz
+/php-5.5.0beta4.tar.xz

diff --git a/opcache.ini b/opcache.ini
index ef6e0e0..0b85b67 100644
--- a/opcache.ini
+++ b/opcache.ini
@@ -1,5 +1,5 @@
 ; Enable Zend OPcache extension module
-zend_extension=@EXTPATH@/opcache.so
+zend_extension=opcache.so
 
 ; Determines if Zend OPCache is enabled
 opcache.enable=1

diff --git a/php-5.4.5-system-libzip.patch b/php-5.4.5-system-libzip.patch
deleted file mode 100644
index 897fb87..0000000
--- a/php-5.4.5-system-libzip.patch
+++ /dev/null
@@ -1,501 +0,0 @@
-diff -up php-5.4.5RC1/ext/zip/config.m4.systzip php-5.4.5RC1/ext/zip/config.m4
---- php-5.4.5RC1/ext/zip/config.m4.systzip	2012-07-04 07:43:14.000000000 +0200
-+++ php-5.4.5RC1/ext/zip/config.m4	2012-07-07 15:56:41.418171233 +0200
-@@ -13,65 +13,116 @@
- PHP_ARG_WITH(pcre-dir, pcre install prefix,
- [  --with-pcre-dir           ZIP: pcre install prefix], no, no)
- 
--if test "$PHP_ZIP" != "no"; then
-+PHP_ARG_WITH(libzip, libzip,
-+[ --with-libzip[=DIR]        ZIP: use libzip], no, no)
- 
--  if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
--    if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
--      PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
--      PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
--    elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
--      PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
--      PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
-+if test "$PHP_ZIP" != "no"; then
-+  if test "$PHP_LIBZIP" != "no"; then
-+
-+    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-+
-+    dnl system libzip, depends on libzip
-+    AC_MSG_CHECKING(for libzip)
-+    if test -r $PHP_LIBZIP/include/zip.h; then
-+      LIBZIP_CFLAGS="-I$PHP_LIBZIP/include"
-+      LIBZIP_LIBDIR="$PHP_LIBZIP/$PHP_LIBDIR"
-+      AC_MSG_RESULT(from option: found in $PHP_LIBZIP)
-+
-+    elif test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libzip; then
-+      LIBZIP_CFLAGS=`$PKG_CONFIG libzip --cflags`
-+      LIBZIP_LIBDIR=`$PKG_CONFIG libzip --variable=libdir`
-+      AC_MSG_RESULT(from pkgconfig: found in $LIBZIP_LIBDIR)
-+
-     else
--      AC_MSG_ERROR([Can not find zlib headers under "$PHP_ZLIB_DIR"])
-+      for i in /usr/local /usr; do
-+        if test -r $i/include/zip.h; then
-+          LIBZIP_CFLAGS="-I$i/include"
-+          LIBZIP_LIBDIR="$i/$PHP_LIBDIR"
-+          AC_MSG_RESULT(in default path: found in $i)
-+          break
-+        fi
-+      done
-+    fi
-+
-+    if test -z "$LIBZIP_LIBDIR"; then
-+      AC_MSG_RESULT(not found)
-+      AC_MSG_ERROR(Please reinstall the libzip distribution)
-     fi
-+
-+    dnl Could not think of a simple way to check libzip for overwrite support
-+    PHP_CHECK_LIBRARY(zip, zip_open,
-+    [
-+      PHP_ADD_LIBRARY_WITH_PATH(zip, $LIBZIP_LIBDIR, ZIP_SHARED_LIBADD)
-+      AC_DEFINE(HAVE_LIBZIP,1,[ ])
-+    ], [
-+      AC_MSG_ERROR(could not find usable libzip)
-+    ], [
-+      -L$LIBZIP_LIBDIR
-+    ])
-+
-+    AC_DEFINE(HAVE_ZIP,1,[ ]) 
-+    PHP_NEW_EXTENSION(zip, php_zip.c zip_stream.c, $ext_shared,, $LIBZIP_CFLAGS)
-+    PHP_SUBST(ZIP_SHARED_LIBADD)
-   else
--    for i in /usr/local /usr; do
--      if test -f "$i/include/zlib/zlib.h"; then
--        PHP_ZLIB_DIR="$i"
--        PHP_ZLIB_INCDIR="$i/include/zlib"
--      elif test -f "$i/include/zlib.h"; then
--        PHP_ZLIB_DIR="$i"
--        PHP_ZLIB_INCDIR="$i/include"
-+
-+  dnl bundled libzip, depends on zlib
-+    if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
-+      if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
-+        PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
-+        PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
-+      elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
-+        PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
-+        PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
-+      else
-+        AC_MSG_ERROR([Can not find zlib headers under "$PHP_ZLIB_DIR"])
-       fi
--    done
--  fi
-+    else
-+      for i in /usr/local /usr; do
-+        if test -f "$i/include/zlib/zlib.h"; then
-+          PHP_ZLIB_DIR="$i"
-+          PHP_ZLIB_INCDIR="$i/include/zlib"
-+        elif test -f "$i/include/zlib.h"; then
-+          PHP_ZLIB_DIR="$i"
-+          PHP_ZLIB_INCDIR="$i/include"
-+        fi
-+      done
-+    fi
- 
--  dnl # zlib
--  AC_MSG_CHECKING([for the location of zlib])
--  if test "$PHP_ZLIB_DIR" = "no"; then
--    AC_MSG_ERROR([zip support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located])
--  else
--    AC_MSG_RESULT([$PHP_ZLIB_DIR])
--    PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/$PHP_LIBDIR, ZIP_SHARED_LIBADD)
--    PHP_ADD_INCLUDE($PHP_ZLIB_INCDIR)
--  fi
-+    dnl # zlib
-+    AC_MSG_CHECKING([for the location of zlib])
-+    if test "$PHP_ZLIB_DIR" = "no"; then
-+      AC_MSG_ERROR([zip support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located])
-+    else
-+      AC_MSG_RESULT([$PHP_ZLIB_DIR])
-+      PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/$PHP_LIBDIR, ZIP_SHARED_LIBADD)
-+      PHP_ADD_INCLUDE($PHP_ZLIB_INCDIR)
-+    fi
- 
--  dnl This is PECL build, check if bundled PCRE library is used
--  old_CPPFLAGS=$CPPFLAGS
--  CPPFLAGS=$INCLUDES
--  AC_EGREP_CPP(yes,[
-+    dnl This is PECL build, check if bundled PCRE library is used
-+    old_CPPFLAGS=$CPPFLAGS
-+    CPPFLAGS=$INCLUDES
-+    AC_EGREP_CPP(yes,[
- #include <main/php_config.h>
- #if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
- yes
- #endif
--  ],[
--    PHP_PCRE_REGEX=yes
--  ],[
--    AC_EGREP_CPP(yes,[
-+    ],[
-+      PHP_PCRE_REGEX=yes
-+    ],[
-+      AC_EGREP_CPP(yes,[
- #include <main/php_config.h>
- #if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
- yes
- #endif
--    ],[
--      PHP_PCRE_REGEX=pecl
--    ],[
--      PHP_PCRE_REGEX=no
-+      ],[
-+        PHP_PCRE_REGEX=pecl
-+      ],[
-+        PHP_PCRE_REGEX=no
-+      ])
-     ])
--  ])
--  CPPFLAGS=$old_CPPFLAGS
-+    CPPFLAGS=$old_CPPFLAGS
- 
--  PHP_ZIP_SOURCES="$PHP_ZIP_SOURCES lib/zip_add.c lib/zip_error.c lib/zip_fclose.c \
-+    PHP_ZIP_SOURCES="$PHP_ZIP_SOURCES lib/zip_add.c lib/zip_error.c lib/zip_fclose.c \
-                          lib/zip_fread.c lib/zip_open.c lib/zip_source_filep.c  \
-                          lib/zip_strerror.c lib/zip_close.c lib/zip_error_get.c \
-                          lib/zip_file_error_get.c lib/zip_free.c lib/zip_rename.c \
-@@ -98,10 +149,11 @@
- 						 lib/zip_source_open.c lib/zip_source_pkware.c lib/zip_source_pop.c \
- 						 lib/zip_source_read.c lib/zip_source_stat.c"
- 
--  AC_DEFINE(HAVE_ZIP,1,[ ])
--  PHP_NEW_EXTENSION(zip, php_zip.c zip_stream.c $PHP_ZIP_SOURCES, $ext_shared)
--  PHP_ADD_BUILD_DIR($ext_builddir/lib, 1)
--  PHP_SUBST(ZIP_SHARED_LIBADD)
-+    AC_DEFINE(HAVE_ZIP,1,[ ])
-+    PHP_NEW_EXTENSION(zip, php_zip.c zip_stream.c $PHP_ZIP_SOURCES, $ext_shared)
-+    PHP_ADD_BUILD_DIR($ext_builddir/lib, 1)
-+    PHP_SUBST(ZIP_SHARED_LIBADD)
-+  fi
- 
-   dnl so we always include the known-good working hack.
-   PHP_ADD_MAKEFILE_FRAGMENT
-diff -up php-5.4.5RC1/ext/zip/php_zip.c.systzip php-5.4.5RC1/ext/zip/php_zip.c
---- php-5.4.5RC1/ext/zip/php_zip.c.systzip	2012-07-04 07:43:14.000000000 +0200
-+++ php-5.4.5RC1/ext/zip/php_zip.c	2012-07-07 15:59:12.728676026 +0200
-@@ -29,8 +29,232 @@
- #include "ext/standard/php_string.h"
- #include "ext/pcre/php_pcre.h"
- #include "php_zip.h"
-+#if defined(HAVE_LIBZIP)
-+#include <zip.h>
-+
-+/* Copied from libzip 0.10 */
-+
-+/* state of change of a file in zip archive */
-+
-+enum zip_state { ZIP_ST_UNCHANGED, ZIP_ST_DELETED, ZIP_ST_REPLACED,
-+                 ZIP_ST_ADDED, ZIP_ST_RENAMED };
-+
-+/* error source for layered sources */
-+
-+enum zip_les { ZIP_LES_NONE, ZIP_LES_UPPER, ZIP_LES_LOWER, ZIP_LES_INVAL };
-+
-+typedef zip_int64_t (*zip_source_layered_callback)(struct zip_source *, void *,
-+                                                   void *, zip_uint64_t,
-+                                                   enum zip_source_cmd);
-+
-+struct zip_error {
-+    int zip_err;        /* libzip error code (ZIP_ER_*) */
-+    int sys_err;        /* copy of errno (E*) or zlib error code */
-+    char *str;          /* string representation or NULL */
-+};
-+
-+/* zip archive, part of API */
-+
-+struct zip {
-+    char *zn;                   /* file name */
-+    FILE *zp;                   /* file */
-+    struct zip_error error;     /* error information */
-+
-+    unsigned int flags;         /* archive global flags */
-+    unsigned int ch_flags;	/* changed archive global flags */
-+
-+    char *default_password;     /* password used when no other supplied */
-+
-+    struct zip_cdir *cdir;	/* central directory */
-+    char *ch_comment;           /* changed archive comment */
-+    int ch_comment_len;         /* length of changed zip archive
-+                                 * comment, -1 if unchanged */
-+    zip_uint64_t nentry;        /* number of entries */
-+    zip_uint64_t nentry_alloc;  /* number of entries allocated */
-+    struct zip_entry *entry;    /* entries */
-+    int nfile;                  /* number of opened files within archive */
-+    int nfile_alloc;            /* number of files allocated */
-+    struct zip_file **file;     /* opened files within archive */
-+};
-+
-+/* file in zip archive, part of API */
-+
-+struct zip_file {
-+    struct zip *za;             /* zip archive containing this file */
-+    struct zip_error error;     /* error information */
-+    int eof;
-+    struct zip_source *src;     /* data source */
-+};
-+
-+/* zip archive directory entry (central or local) */
-+
-+struct zip_dirent {
-+    unsigned short version_madeby;	/* (c)  version of creator */
-+    unsigned short version_needed;	/* (cl) version needed to extract */
-+    unsigned short bitflags;            /* (cl) general purpose bit flag */
-+    unsigned short comp_method;         /* (cl) compression method used */
-+    time_t last_mod;                    /* (cl) time of last modification */
-+    unsigned int crc;                   /* (cl) CRC-32 of uncompressed data */
-+    unsigned int comp_size;             /* (cl) size of commpressed data */
-+    unsigned int uncomp_size;           /* (cl) size of uncommpressed data */
-+    char *filename;                     /* (cl) file name (NUL-terminated) */
-+    unsigned short filename_len;        /* (cl) length of filename (w/o NUL) */
-+    char *extrafield;                   /* (cl) extra field */
-+    unsigned short extrafield_len;	/* (cl) length of extra field */
-+    char *comment;                      /* (c)  file comment */
-+    unsigned short comment_len;         /* (c)  length of file comment */
-+    unsigned short disk_number;         /* (c)  disk number start */
-+    unsigned short int_attrib;          /* (c)  internal file attributes */
-+    unsigned int ext_attrib;            /* (c)  external file attributes */
-+    unsigned int offset;                /* (c)  offset of local header  */
-+};
-+
-+/* zip archive central directory */
-+
-+struct zip_cdir {
-+    struct zip_dirent *entry;   /* directory entries */
-+    int nentry;                 /* number of entries */
-+
-+    unsigned int size;          /* size of central direcotry */
-+    unsigned int offset;        /* offset of central directory in file */
-+    char *comment;              /* zip archive comment */
-+    unsigned short comment_len; /* length of zip archive comment */
-+};
-+
-+struct zip_source {
-+    struct zip_source *src;
-+    union {
-+	zip_source_callback f;
-+        zip_source_layered_callback l;
-+    } cb;
-+    void *ud;
-+    enum zip_les error_source;
-+    int is_open;
-+};
-+
-+/* entry in zip archive directory */
-+
-+struct zip_entry {
-+    enum zip_state state;
-+    struct zip_source *source;
-+    char *ch_filename;
-+    char *ch_extra;
-+    int ch_extra_len;
-+    char *ch_comment;
-+    int ch_comment_len;
-+};
-+
-+void _zip_dirent_finalize(struct zip_dirent *zde)
-+{
-+    free(zde->filename);
-+    zde->filename = NULL;
-+    free(zde->extrafield);
-+    zde->extrafield = NULL;
-+    free(zde->comment);
-+    zde->comment = NULL;
-+}
-+
-+void _zip_cdir_free(struct zip_cdir *cd)
-+{
-+    int i;
-+
-+    if (!cd)
-+        return;
-+
-+    for (i=0; i<cd->nentry; i++)
-+        _zip_dirent_finalize(cd->entry+i);
-+    free(cd->comment);
-+    free(cd->entry);
-+    free(cd);
-+}
-+
-+void _zip_error_fini(struct zip_error *err)
-+{
-+    free(err->str);
-+    err->str = NULL;
-+}
-+
-+void _zip_error_init(struct zip_error *err)
-+{
-+    err->zip_err = ZIP_ER_OK;
-+    err->sys_err = 0;
-+    err->str = NULL;
-+}
-+
-+void _zip_unchange_data(struct zip_entry *ze)
-+{
-+    if (ze->source) {
-+        zip_source_free(ze->source);
-+        ze->source = NULL;
-+    }
-+
-+    ze->state = ze->ch_filename ? ZIP_ST_RENAMED : ZIP_ST_UNCHANGED;
-+}
-+
-+void _zip_entry_free(struct zip_entry *ze)
-+{
-+    free(ze->ch_filename);
-+    ze->ch_filename = NULL;
-+    free(ze->ch_extra);
-+    ze->ch_extra = NULL;
-+    ze->ch_extra_len = -1;
-+    free(ze->ch_comment);
-+    ze->ch_comment = NULL;
-+    ze->ch_comment_len = -1;
-+
-+    _zip_unchange_data(ze);
-+}
-+
-+void
-+_zip_error_set(struct zip_error *err, int ze, int se)
-+{
-+    if (err) {
-+	err->zip_err = ze;
-+        err->sys_err = se;
-+    }
-+}
-+
-+void _zip_free(struct zip *za)
-+{
-+    int i;
-+
-+    if (za == NULL)
-+        return;
-+
-+    if (za->zn)
-+        free(za->zn);
-+
-+    if (za->zp)
-+       	fclose(za->zp);
-+
-+    free(za->default_password);
-+    _zip_cdir_free(za->cdir);
-+    free(za->ch_comment);
-+
-+    if (za->entry) {
-+        for (i=0; i<za->nentry; i++) {
-+            _zip_entry_free(za->entry+i);
-+        }
-+        free(za->entry);
-+    }
-+
-+    for (i=0; i<za->nfile; i++) {
-+        if (za->file[i]->error.zip_err == ZIP_ER_OK) {
-+            _zip_error_set(&za->file[i]->error, ZIP_ER_ZIPCLOSED, 0);
-+            za->file[i]->za = NULL;
-+        }
-+    }
-+
-+    free(za->file);
-+    free(za);
-+    return;
-+} 
-+
-+
-+#else
- #include "lib/zip.h"
- #include "lib/zipint.h"
-+#endif
- 
- /* zip_open is a macro for renaming libzip zipopen, so we need to use PHP_NAMED_FUNCTION */
- static PHP_NAMED_FUNCTION(zif_zip_open);
-@@ -1624,6 +1848,10 @@ static ZIPARCHIVE_METHOD(addEmptyDir)
- 	}
- 
- 	idx = zip_stat(intern, s, 0, &sb);
-+	/* We don't care about the NOENT status	error here. */
-+	if (intern->error.zip_err == ZIP_ER_NOENT) {
-+		_zip_error_set(&intern->error, ZIP_ER_OK, 0);
-+	}
- 	if (idx >= 0) {
- 		RETVAL_FALSE;
- 	} else {
-@@ -1846,6 +2074,10 @@ static ZIPARCHIVE_METHOD(addFromString)
- 	}
- 
- 	cur_idx = zip_name_locate(intern, (const char *)name, 0);
-+	/* We don't care about the NOENT status error here. */
-+	if (intern->error.zip_err == ZIP_ER_NOENT) {
-+		_zip_error_set(&intern->error, ZIP_ER_OK, 0);
-+	}
- 	/* TODO: fix  _zip_replace */
- 	if (cur_idx >= 0) {
- 		if (zip_delete(intern, cur_idx) == -1) {
-@@ -2870,5 +3098,9 @@ static PHP_MINFO_FUNCTION(zip)
- 	php_info_print_table_row(2, "Zip version", PHP_ZIP_VERSION_STRING);
--	php_info_print_table_row(2, "Libzip version", LIBZIP_VERSION);
-+#if defined(HAVE_LIBZIP)
-+	php_info_print_table_row(2, "Compiled against libzip version", LIBZIP_VERSION);
-+#else
-+	php_info_print_table_row(2, "Bundled libzip version", LIBZIP_VERSION);
-+#endif
- 
- 	php_info_print_table_end();
- }
-diff -up php-5.4.5RC1/ext/zip/php_zip.h.systzip php-5.4.5RC1/ext/zip/php_zip.h
---- php-5.4.5RC1/ext/zip/php_zip.h.systzip	2012-07-04 07:43:14.000000000 +0200
-+++ php-5.4.5RC1/ext/zip/php_zip.h	2012-07-07 15:57:34.845319432 +0200
-@@ -28,7 +28,11 @@ extern zend_module_entry zip_module_entr
- #include "TSRM.h"
- #endif
- 
-+#if defined(HAVE_LIBZIP)
-+#include <zip.h>
-+#else
- #include "lib/zip.h"
-+#endif
- 
- #define PHP_ZIP_VERSION_STRING "1.11.0"
- 
-diff -up php-5.4.5RC1/ext/zip/tests/bug38943.phpt.systzip php-5.4.5RC1/ext/zip/tests/bug38943.phpt
---- php-5.4.5RC1/ext/zip/tests/bug38943.phpt.systzip	2012-07-04 07:43:14.000000000 +0200
-+++ php-5.4.5RC1/ext/zip/tests/bug38943.phpt	2012-07-07 15:56:41.422171242 +0200
-@@ -27,7 +27,7 @@ array(1) {
-   [0]=>
-   int(1)
- }
--object(myZip)#1 (%d) {
-+object(myZip)#%d (%d) {
-   ["test":"myZip":private]=>
-   int(0)
-   ["testp"]=>
-diff -up php-5.4.5RC1/ext/zip/tests/pecl12414.phpt.systzip php-5.4.5RC1/ext/zip/tests/pecl12414.phpt
---- php-5.4.5RC1/ext/zip/tests/pecl12414.phpt.systzip	2012-07-04 07:43:14.000000000 +0200
-+++ php-5.4.5RC1/ext/zip/tests/pecl12414.phpt	2012-07-07 15:56:41.422171242 +0200
-@@ -5,6 +5,8 @@ Bug #12414 ( extracting files from damag
- /*$ */
- if(!extension_loaded('zip')) die('skip');
-  ?>
-+--XFAIL--
-+Doesn't work with system libzip (zip_readfile could not read from ...)
- --FILE--
- <?php
- $filename = 'MYLOGOV2.GFX';
-diff -up php-5.4.5RC1/ext/zip/zip_stream.c.systzip php-5.4.5RC1/ext/zip/zip_stream.c
---- php-5.4.5RC1/ext/zip/zip_stream.c.systzip	2012-07-04 07:43:14.000000000 +0200
-+++ php-5.4.5RC1/ext/zip/zip_stream.c	2012-07-07 15:56:41.423171244 +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-5.5.0-opcache.patch b/php-5.5.0-opcache.patch
deleted file mode 100644
index 8ef74e9..0000000
--- a/php-5.5.0-opcache.patch
+++ /dev/null
@@ -1,149 +0,0 @@
-From af967de2afc584c602c0b6d4d6731e411323d94e Mon Sep 17 00:00:00 2001
-From: Dmitry Stogov <dmitry@zend.com>
-Date: Wed, 10 Apr 2013 21:41:30 +0400
-Subject: [PATCH] Allow wilcards in opcache.blacklist_filename
-
----
- ext/opcache/README                       |  8 +++----
- ext/opcache/tests/blacklist.phpt         | 20 ++++++++++++++++++
- ext/opcache/tests/opcache-1.blacklist    |  5 +++++
- ext/opcache/tests/opcache-2.blacklist    |  1 +
- ext/opcache/zend_accelerator_blacklist.c | 36 ++++++++++++++++++++++++++++++++
- 5 files changed, 66 insertions(+), 4 deletions(-)
- create mode 100644 ext/opcache/tests/blacklist.phpt
- create mode 100644 ext/opcache/tests/opcache-1.blacklist
- create mode 100644 ext/opcache/tests/opcache-2.blacklist
-
-diff --git a/ext/opcache/README b/ext/opcache/README
-index 03386a0..3110012 100644
---- a/ext/opcache/README
-+++ b/ext/opcache/README
-@@ -151,13 +151,13 @@ opcache.dups_fix (default "0")
- 	Enable this hack as a workaround for "Cannot redeclare class" errors.
- 
- opcache.blacklist_filename
--	The location of the OPcache blacklist file.
--	The OPcache blacklist file is a text file that holds the names of files
-+	The location of the OPcache blacklist file (wildcards allowed).
-+	Each OPcache blacklist file is a text file that holds the names of files
- 	that should not be accelerated. The file format is to add each filename
- 	to a new line. The filename may be a full path or just a file prefix
- 	(i.e., /var/www/x  blacklists all the files and directories in /var/www
--	that start with 'x'). Files are usually triggered by one of the following
--	three reasons:
-+	that start with 'x'). Line starting with a ; are ignored (comments).
-+	Files are usually triggered by one of the following three reasons:
- 	1) Directories that contain auto generated code, like Smarty or ZFW cache.
- 	2) Code that does not work well when accelerated, due to some delayed
- 	   compile time evaluation.
-diff --git a/ext/opcache/tests/blacklist.phpt b/ext/opcache/tests/blacklist.phpt
-new file mode 100644
-index 0000000..f4a3472
---- /dev/null
-+++ b/ext/opcache/tests/blacklist.phpt
-@@ -0,0 +1,20 @@
-+--TEST--
-+Blacklist (with glob, quote and comments)
-+--INI--
-+opcache.enable=1
-+opcache.enable_cli=1
-+opcache.blacklist_filename={PWD}/opcache-*.blacklist
-+--SKIPIF--
-+<?php require_once('skipif.inc'); ?>
-+--FILE--
-+<?php
-+$conf = opcache_get_configuration();
-+print_r($conf['blacklist']);
-+?>
-+--EXPECT--
-+Array
-+(
-+    [0] => /path/to/foo
-+    [1] => /path/to/foo2
-+    [2] => /path/to/bar
-+)
-\ No newline at end of file
-diff --git a/ext/opcache/tests/opcache-1.blacklist b/ext/opcache/tests/opcache-1.blacklist
-new file mode 100644
-index 0000000..5f498d6
---- /dev/null
-+++ b/ext/opcache/tests/opcache-1.blacklist
-@@ -0,0 +1,5 @@
-+; comments are allowed in blacklist file
-+; and empty line are ignored
-+
-+/path/to/foo
-+"/path/to/foo2"
-\ No newline at end of file
-diff --git a/ext/opcache/tests/opcache-2.blacklist b/ext/opcache/tests/opcache-2.blacklist
-new file mode 100644
-index 0000000..4f6580a
---- /dev/null
-+++ b/ext/opcache/tests/opcache-2.blacklist
-@@ -0,0 +1 @@
-+/path/to/bar
-diff --git a/ext/opcache/zend_accelerator_blacklist.c b/ext/opcache/zend_accelerator_blacklist.c
-index 764c950..b09d0e5 100644
---- a/ext/opcache/zend_accelerator_blacklist.c
-+++ b/ext/opcache/zend_accelerator_blacklist.c
-@@ -36,6 +36,14 @@
- # define REGEX_MODE (REG_EXTENDED|REG_NOSUB)
- #endif
- 
-+#ifdef HAVE_GLOB
-+#ifdef PHP_WIN32
-+#include "win32/glob.h"
-+#else
-+#include <glob.h>
-+#endif
-+#endif
-+
- #define ZEND_BLACKLIST_BLOCK_SIZE	32
- 
- struct _zend_regexp_list {
-@@ -168,7 +176,11 @@ static inline void zend_accel_blacklist_allocate(zend_blacklist *blacklist)
- 	}
- }
- 
-+#ifdef HAVE_GLOB
-+static void zend_accel_blacklist_loadone(zend_blacklist *blacklist, char *filename)
-+#else
- void zend_accel_blacklist_load(zend_blacklist *blacklist, char *filename)
-+#endif
- {
- 	char buf[MAXPATHLEN + 1], real_path[MAXPATHLEN + 1];
- 	FILE *fp;
-@@ -238,6 +250,30 @@ void zend_accel_blacklist_load(zend_blacklist *blacklist, char *filename)
- 	zend_accel_blacklist_update_regexp(blacklist);
- }
- 
-+#ifdef HAVE_GLOB
-+void zend_accel_blacklist_load(zend_blacklist *blacklist, char *filename)
-+{
-+	glob_t globbuf;
-+	int    ret, i;
-+
-+	memset(&globbuf, 0, sizeof(glob_t));
-+
-+	ret = glob(filename, 0, NULL, &globbuf);
-+#ifdef GLOB_NOMATCH
-+	if (ret == GLOB_NOMATCH || !globbuf.gl_pathc) {
-+#else
-+	if (!globbuf.gl_pathc) {
-+#endif
-+		zend_accel_error(ACCEL_LOG_WARNING, "No blacklist file found matching: %s\n", filename);
-+	} else {
-+		for(i=0 ; i<globbuf.gl_pathc; i++) {
-+			zend_accel_blacklist_loadone(blacklist, globbuf.gl_pathv[i]);
-+		}
-+		globfree(&globbuf);
-+	}
-+}
-+#endif
-+
- zend_bool zend_accel_blacklist_is_blacklisted(zend_blacklist *blacklist, char *verify_path)
- {
- 	int ret = 0;
--- 
-1.7.11.5
-

diff --git a/php-5.5.0-system-libzip.patch b/php-5.5.0-system-libzip.patch
new file mode 100644
index 0000000..409af5d
--- /dev/null
+++ b/php-5.5.0-system-libzip.patch
@@ -0,0 +1,501 @@
+diff -up php5.5-201304181030/ext/zip/config.m4.systzip php5.5-201304181030/ext/zip/config.m4
+--- php5.5-201304181030/ext/zip/config.m4.systzip	2012-12-05 11:40:39.000000000 +0100
++++ php5.5-201304181030/ext/zip/config.m4	2013-04-18 13:17:32.144550036 +0200
+@@ -13,65 +13,116 @@ fi
+ PHP_ARG_WITH(pcre-dir, pcre install prefix,
+ [  --with-pcre-dir           ZIP: pcre install prefix], no, no)
+ 
++PHP_ARG_WITH(libzip, libzip,
++[ --with-libzip[=DIR]        ZIP: use libzip], no, no)
++
+ if test "$PHP_ZIP" != "no"; then
++  if test "$PHP_LIBZIP" != "no"; then
++
++    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
++
++    dnl system libzip, depends on libzip
++    AC_MSG_CHECKING(for libzip)
++    if test -r $PHP_LIBZIP/include/zip.h; then
++      LIBZIP_CFLAGS="-I$PHP_LIBZIP/include"
++      LIBZIP_LIBDIR="$PHP_LIBZIP/$PHP_LIBDIR"
++      AC_MSG_RESULT(from option: found in $PHP_LIBZIP)
++
++    elif test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libzip; then
++      LIBZIP_CFLAGS=`$PKG_CONFIG libzip --cflags`
++      LIBZIP_LIBDIR=`$PKG_CONFIG libzip --variable=libdir`
++      AC_MSG_RESULT(from pkgconfig: found in $LIBZIP_LIBDIR)
+ 
+-  if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
+-    if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
+-      PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
+-      PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
+-    elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
+-      PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
+-      PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
+     else
+-      AC_MSG_ERROR([Can not find zlib headers under "$PHP_ZLIB_DIR"])
++      for i in /usr/local /usr; do
++        if test -r $i/include/zip.h; then
++          LIBZIP_CFLAGS="-I$i/include"
++          LIBZIP_LIBDIR="$i/$PHP_LIBDIR"
++          AC_MSG_RESULT(in default path: found in $i)
++          break
++        fi
++      done
+     fi
++
++    if test -z "$LIBZIP_LIBDIR"; then
++      AC_MSG_RESULT(not found)
++      AC_MSG_ERROR(Please reinstall the libzip distribution)
++    fi
++
++    dnl Could not think of a simple way to check libzip for overwrite support
++    PHP_CHECK_LIBRARY(zip, zip_open,
++    [
++      PHP_ADD_LIBRARY_WITH_PATH(zip, $LIBZIP_LIBDIR, ZIP_SHARED_LIBADD)
++      AC_DEFINE(HAVE_LIBZIP,1,[ ])
++    ], [
++      AC_MSG_ERROR(could not find usable libzip)
++    ], [
++      -L$LIBZIP_LIBDIR
++    ])
++
++    AC_DEFINE(HAVE_ZIP,1,[ ]) 
++    PHP_NEW_EXTENSION(zip, php_zip.c zip_stream.c, $ext_shared,, $LIBZIP_CFLAGS)
++    PHP_SUBST(ZIP_SHARED_LIBADD)
+   else
+-    for i in /usr/local /usr; do
+-      if test -f "$i/include/zlib/zlib.h"; then
+-        PHP_ZLIB_DIR="$i"
+-        PHP_ZLIB_INCDIR="$i/include/zlib"
+-      elif test -f "$i/include/zlib.h"; then
+-        PHP_ZLIB_DIR="$i"
+-        PHP_ZLIB_INCDIR="$i/include"
++
++  dnl bundled libzip, depends on zlib
++    if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
++      if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
++        PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
++        PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
++      elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
++        PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
++        PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
++      else
++        AC_MSG_ERROR([Can not find zlib headers under "$PHP_ZLIB_DIR"])
+       fi
+-    done
+-  fi
++    else
++      for i in /usr/local /usr; do
++        if test -f "$i/include/zlib/zlib.h"; then
++          PHP_ZLIB_DIR="$i"
++          PHP_ZLIB_INCDIR="$i/include/zlib"
++        elif test -f "$i/include/zlib.h"; then
++          PHP_ZLIB_DIR="$i"
++          PHP_ZLIB_INCDIR="$i/include"
++        fi
++      done
++    fi
+ 
+-  dnl # zlib
+-  AC_MSG_CHECKING([for the location of zlib])
+-  if test "$PHP_ZLIB_DIR" = "no"; then
+-    AC_MSG_ERROR([zip support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located])
+-  else
+-    AC_MSG_RESULT([$PHP_ZLIB_DIR])
+-    PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/$PHP_LIBDIR, ZIP_SHARED_LIBADD)
+-    PHP_ADD_INCLUDE($PHP_ZLIB_INCDIR)
+-  fi
++    dnl # zlib
++    AC_MSG_CHECKING([for the location of zlib])
++    if test "$PHP_ZLIB_DIR" = "no"; then
++      AC_MSG_ERROR([zip support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located])
++    else
++      AC_MSG_RESULT([$PHP_ZLIB_DIR])
++      PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/$PHP_LIBDIR, ZIP_SHARED_LIBADD)
++      PHP_ADD_INCLUDE($PHP_ZLIB_INCDIR)
++    fi
+ 
+-  dnl This is PECL build, check if bundled PCRE library is used
+-  old_CPPFLAGS=$CPPFLAGS
+-  CPPFLAGS=$INCLUDES
+-  AC_EGREP_CPP(yes,[
++    dnl This is PECL build, check if bundled PCRE library is used
++    old_CPPFLAGS=$CPPFLAGS
++    CPPFLAGS=$INCLUDES
++    AC_EGREP_CPP(yes,[
+ #include <main/php_config.h>
+ #if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
+ yes
+ #endif
+-  ],[
+-    PHP_PCRE_REGEX=yes
+-  ],[
+-    AC_EGREP_CPP(yes,[
++    ],[
++      PHP_PCRE_REGEX=yes
++    ],[
++      AC_EGREP_CPP(yes,[
+ #include <main/php_config.h>
+ #if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
+ yes
+ #endif
+-    ],[
+-      PHP_PCRE_REGEX=pecl
+-    ],[
+-      PHP_PCRE_REGEX=no
++      ],[
++        PHP_PCRE_REGEX=pecl
++      ],[
++        PHP_PCRE_REGEX=no
++      ])
+     ])
+-  ])
+-  CPPFLAGS=$old_CPPFLAGS
++    CPPFLAGS=$old_CPPFLAGS
+ 
+-  PHP_ZIP_SOURCES="$PHP_ZIP_SOURCES lib/zip_add.c lib/zip_error.c lib/zip_fclose.c \
++    PHP_ZIP_SOURCES="$PHP_ZIP_SOURCES lib/zip_add.c lib/zip_error.c lib/zip_fclose.c \
+                          lib/zip_fread.c lib/zip_open.c lib/zip_source_filep.c  \
+                          lib/zip_strerror.c lib/zip_close.c lib/zip_error_get.c \
+                          lib/zip_file_error_get.c lib/zip_free.c lib/zip_rename.c \
+@@ -98,10 +149,11 @@ yes
+ 						 lib/zip_source_open.c lib/zip_source_pkware.c lib/zip_source_pop.c \
+ 						 lib/zip_source_read.c lib/zip_source_stat.c"
+ 
+-  AC_DEFINE(HAVE_ZIP,1,[ ])
+-  PHP_NEW_EXTENSION(zip, php_zip.c zip_stream.c $PHP_ZIP_SOURCES, $ext_shared)
+-  PHP_ADD_BUILD_DIR($ext_builddir/lib, 1)
+-  PHP_SUBST(ZIP_SHARED_LIBADD)
++    AC_DEFINE(HAVE_ZIP,1,[ ])
++    PHP_NEW_EXTENSION(zip, php_zip.c zip_stream.c $PHP_ZIP_SOURCES, $ext_shared)
++    PHP_ADD_BUILD_DIR($ext_builddir/lib, 1)
++    PHP_SUBST(ZIP_SHARED_LIBADD)
++  fi
+ 
+   dnl so we always include the known-good working hack.
+   PHP_ADD_MAKEFILE_FRAGMENT
+diff -up php5.5-201304181030/ext/zip/php_zip.c.systzip php5.5-201304181030/ext/zip/php_zip.c
+--- php5.5-201304181030/ext/zip/php_zip.c.systzip	2013-04-10 22:36:34.000000000 +0200
++++ php5.5-201304181030/ext/zip/php_zip.c	2013-04-18 13:23:29.997871990 +0200
+@@ -30,8 +30,233 @@
+ #include "ext/pcre/php_pcre.h"
+ #include "ext/standard/php_filestat.h"
+ #include "php_zip.h"
++
++#if defined(HAVE_LIBZIP)
++#include <zip.h>
++
++/* Copied from libzip 0.10 */
++
++/* state of change of a file in zip archive */
++
++enum zip_state { ZIP_ST_UNCHANGED, ZIP_ST_DELETED, ZIP_ST_REPLACED,
++                 ZIP_ST_ADDED, ZIP_ST_RENAMED };
++
++/* error source for layered sources */
++
++enum zip_les { ZIP_LES_NONE, ZIP_LES_UPPER, ZIP_LES_LOWER, ZIP_LES_INVAL };
++
++typedef zip_int64_t (*zip_source_layered_callback)(struct zip_source *, void *,
++                                                   void *, zip_uint64_t,
++                                                   enum zip_source_cmd);
++
++struct zip_error {
++    int zip_err;        /* libzip error code (ZIP_ER_*) */
++    int sys_err;        /* copy of errno (E*) or zlib error code */
++    char *str;          /* string representation or NULL */
++};
++
++/* zip archive, part of API */
++
++struct zip {
++    char *zn;                   /* file name */
++    FILE *zp;                   /* file */
++    struct zip_error error;     /* error information */
++
++    unsigned int flags;         /* archive global flags */
++    unsigned int ch_flags;	/* changed archive global flags */
++
++    char *default_password;     /* password used when no other supplied */
++
++    struct zip_cdir *cdir;	/* central directory */
++    char *ch_comment;           /* changed archive comment */
++    int ch_comment_len;         /* length of changed zip archive
++                                 * comment, -1 if unchanged */
++    zip_uint64_t nentry;        /* number of entries */
++    zip_uint64_t nentry_alloc;  /* number of entries allocated */
++    struct zip_entry *entry;    /* entries */
++    int nfile;                  /* number of opened files within archive */
++    int nfile_alloc;            /* number of files allocated */
++    struct zip_file **file;     /* opened files within archive */
++};
++
++/* file in zip archive, part of API */
++
++struct zip_file {
++    struct zip *za;             /* zip archive containing this file */
++    struct zip_error error;     /* error information */
++    int eof;
++    struct zip_source *src;     /* data source */
++};
++
++/* zip archive directory entry (central or local) */
++
++struct zip_dirent {
++    unsigned short version_madeby;	/* (c)  version of creator */
++    unsigned short version_needed;	/* (cl) version needed to extract */
++    unsigned short bitflags;            /* (cl) general purpose bit flag */
++    unsigned short comp_method;         /* (cl) compression method used */
++    time_t last_mod;                    /* (cl) time of last modification */
++    unsigned int crc;                   /* (cl) CRC-32 of uncompressed data */
++    unsigned int comp_size;             /* (cl) size of commpressed data */
++    unsigned int uncomp_size;           /* (cl) size of uncommpressed data */
++    char *filename;                     /* (cl) file name (NUL-terminated) */
++    unsigned short filename_len;        /* (cl) length of filename (w/o NUL) */
++    char *extrafield;                   /* (cl) extra field */
++    unsigned short extrafield_len;	/* (cl) length of extra field */
++    char *comment;                      /* (c)  file comment */
++    unsigned short comment_len;         /* (c)  length of file comment */
++    unsigned short disk_number;         /* (c)  disk number start */
++    unsigned short int_attrib;          /* (c)  internal file attributes */
++    unsigned int ext_attrib;            /* (c)  external file attributes */
++    unsigned int offset;                /* (c)  offset of local header  */
++};
++
++/* zip archive central directory */
++
++struct zip_cdir {
++    struct zip_dirent *entry;   /* directory entries */
++    int nentry;                 /* number of entries */
++
++    unsigned int size;          /* size of central direcotry */
++    unsigned int offset;        /* offset of central directory in file */
++    char *comment;              /* zip archive comment */
++    unsigned short comment_len; /* length of zip archive comment */
++};
++
++struct zip_source {
++    struct zip_source *src;
++    union {
++        zip_source_callback f;
++        zip_source_layered_callback l;
++    } cb;
++    void *ud;
++    enum zip_les error_source;
++    int is_open;
++};
++
++/* entry in zip archive directory */
++
++struct zip_entry {
++    enum zip_state state;
++    struct zip_source *source;
++    char *ch_filename;
++    char *ch_extra;
++    int ch_extra_len;
++    char *ch_comment;
++    int ch_comment_len;
++};
++
++void _zip_dirent_finalize(struct zip_dirent *zde)
++{
++    free(zde->filename);
++    zde->filename = NULL;
++    free(zde->extrafield);
++    zde->extrafield = NULL;
++    free(zde->comment);
++    zde->comment = NULL;
++}
++
++void _zip_cdir_free(struct zip_cdir *cd)
++{
++    int i;
++
++    if (!cd)
++        return;
++
++    for (i=0; i<cd->nentry; i++)
++        _zip_dirent_finalize(cd->entry+i);
++    free(cd->comment);
++    free(cd->entry);
++    free(cd);
++}
++
++void _zip_error_fini(struct zip_error *err)
++{
++    free(err->str);
++    err->str = NULL;
++}
++
++void _zip_error_init(struct zip_error *err)
++{
++    err->zip_err = ZIP_ER_OK;
++    err->sys_err = 0;
++    err->str = NULL;
++}
++
++void _zip_unchange_data(struct zip_entry *ze)
++{
++    if (ze->source) {
++        zip_source_free(ze->source);
++        ze->source = NULL;
++    }
++
++    ze->state = ze->ch_filename ? ZIP_ST_RENAMED : ZIP_ST_UNCHANGED;
++}
++
++void _zip_entry_free(struct zip_entry *ze)
++{
++    free(ze->ch_filename);
++    ze->ch_filename = NULL;
++    free(ze->ch_extra);
++    ze->ch_extra = NULL;
++    ze->ch_extra_len = -1;
++    free(ze->ch_comment);
++    ze->ch_comment = NULL;
++    ze->ch_comment_len = -1;
++
++    _zip_unchange_data(ze);
++}
++
++void
++_zip_error_set(struct zip_error *err, int ze, int se)
++{
++    if (err) {
++        err->zip_err = ze;
++        err->sys_err = se;
++    }
++}
++
++void _zip_free(struct zip *za)
++{
++    int i;
++
++    if (za == NULL)
++        return;
++
++    if (za->zn)
++        free(za->zn);
++
++    if (za->zp)
++       	fclose(za->zp);
++
++    free(za->default_password);
++    _zip_cdir_free(za->cdir);
++    free(za->ch_comment);
++
++    if (za->entry) {
++        for (i=0; i<za->nentry; i++) {
++            _zip_entry_free(za->entry+i);
++        }
++        free(za->entry);
++    }
++
++    for (i=0; i<za->nfile; i++) {
++        if (za->file[i]->error.zip_err == ZIP_ER_OK) {
++            _zip_error_set(&za->file[i]->error, ZIP_ER_ZIPCLOSED, 0);
++            za->file[i]->za = NULL;
++        }
++    }
++
++    free(za->file);
++    free(za);
++    return;
++} 
++
++
++#else
+ #include "lib/zip.h"
+ #include "lib/zipint.h"
++#endif
+ 
+ /* zip_open is a macro for renaming libzip zipopen, so we need to use PHP_NAMED_FUNCTION */
+ static PHP_NAMED_FUNCTION(zif_zip_open);
+@@ -1631,6 +1856,10 @@ static ZIPARCHIVE_METHOD(addEmptyDir)
+ 	}
+ 
+ 	idx = zip_stat(intern, s, 0, &sb);
++	/* We don't care about the NOENT status	error here. */
++	if (intern->error.zip_err == ZIP_ER_NOENT) {
++		_zip_error_set(&intern->error, ZIP_ER_OK, 0);
++	}
+ 	if (idx >= 0) {
+ 		RETVAL_FALSE;
+ 	} else {
+@@ -1853,6 +2082,10 @@ static ZIPARCHIVE_METHOD(addFromString)
+ 	}
+ 
+ 	cur_idx = zip_name_locate(intern, (const char *)name, 0);
++	/* We don't care about the NOENT status error here. */
++	if (intern->error.zip_err == ZIP_ER_NOENT) {
++		_zip_error_set(&intern->error, ZIP_ER_OK, 0);
++	}
+ 	/* TODO: fix  _zip_replace */
+ 	if (cur_idx >= 0) {
+ 		if (zip_delete(intern, cur_idx) == -1) {
+@@ -2877,5 +3110,9 @@ static PHP_MINFO_FUNCTION(zip)9
+ 	php_info_print_table_row(2, "Zip version", PHP_ZIP_VERSION_STRING);
+-	php_info_print_table_row(2, "Libzip version", LIBZIP_VERSION);
++#if defined(HAVE_LIBZIP)
++	php_info_print_table_row(2, "Compiled against libzip version", LIBZIP_VERSION);
++#else
++	php_info_print_table_row(2, "Bundled libzip version", LIBZIP_VERSION);
++#endif
+ 
+ 	php_info_print_table_end();
+ }
+diff -up php5.5-201304181030/ext/zip/php_zip.h.systzip php5.5-201304181030/ext/zip/php_zip.h
+--- php5.5-201304181030/ext/zip/php_zip.h.systzip	2013-01-01 11:36:17.000000000 +0100
++++ php5.5-201304181030/ext/zip/php_zip.h	2013-04-18 13:17:32.147550046 +0200
+@@ -28,7 +28,11 @@ extern zend_module_entry zip_module_entr
+ #include "TSRM.h"
+ #endif
+ 
++#if defined(HAVE_LIBZIP)
++#include <zip.h>
++#else
+ #include "lib/zip.h"
++#endif
+ 
+ #define PHP_ZIP_VERSION_STRING "1.11.0"
+ 
+diff -up php5.5-201304181030/ext/zip/tests/bug38943.phpt.systzip php5.5-201304181030/ext/zip/tests/bug38943.phpt
+--- php5.5-201304181030/ext/zip/tests/bug38943.phpt.systzip	2012-12-05 11:40:39.000000000 +0100
++++ php5.5-201304181030/ext/zip/tests/bug38943.phpt	2013-04-18 13:17:32.147550046 +0200
+@@ -27,7 +27,7 @@ array(1) {
+   [0]=>
+   int(1)
+ }
+-object(myZip)#1 (%d) {
++object(myZip)#%d (%d) {
+   ["test":"myZip":private]=>
+   int(0)
+   ["testp"]=>
+diff -up php5.5-201304181030/ext/zip/tests/pecl12414.phpt.systzip php5.5-201304181030/ext/zip/tests/pecl12414.phpt
+--- php5.5-201304181030/ext/zip/tests/pecl12414.phpt.systzip	2012-12-05 11:40:39.000000000 +0100
++++ php5.5-201304181030/ext/zip/tests/pecl12414.phpt	2013-04-18 13:17:32.148550050 +0200
+@@ -5,6 +5,8 @@ Bug #12414 ( extracting files from damag
+ /*$ */
+ if(!extension_loaded('zip')) die('skip');
+  ?>
++--XFAIL--
++Doesn't work with system libzip (zip_readfile could not read from ...)
+ --FILE--
+ <?php
+ $filename = 'MYLOGOV2.GFX';
+diff -up php5.5-201304181030/ext/zip/zip_stream.c.systzip php5.5-201304181030/ext/zip/zip_stream.c
+--- php5.5-201304181030/ext/zip/zip_stream.c.systzip	2012-12-05 11:40:39.000000000 +0100
++++ php5.5-201304181030/ext/zip/zip_stream.c	2013-04-18 13:17:32.149550054 +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 b92f20b..dfa21b2 100644
--- a/php.spec
+++ b/php.spec
@@ -45,6 +45,9 @@
 
 %global with_dtrace 1
 
+# build with system libgd, not yet ready
+%global  with_libgd 0
+
 %if 0%{?fedora} < 17 && 0%{?rhel} < 7
 %global with_zip     0
 %global with_libzip  0
@@ -61,12 +64,12 @@
 %global db_devel  libdb-devel
 %endif
 
-%global rcver beta3
+%global rcver beta4
 
 Summary: PHP scripting language for creating dynamic web sites
 Name: php
 Version: 5.5.0
-Release: 0.4.%{rcver}%{?dist}
+Release: 0.5.%{rcver}%{?dist}
 # All files licensed under PHP version 3.01, except
 # Zend is licensed under Zend
 # TSRM is licensed under BSD
@@ -105,15 +108,13 @@ Patch42: php-5.3.1-systzdata-v10.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.5-system-libzip.patch
+Patch44: php-5.5.0-system-libzip.patch
 # Use -lldap_r for OpenLDAP
 Patch45: php-5.4.8-ldap_r.patch
 # Make php_config.h constant across builds
 Patch46: php-5.4.9-fixheader.patch
 # drop "Configure command" from phpinfo output
 Patch47: php-5.4.9-phpinfo.patch
-# Allow wildcard il opcache.backlist_filename
-Patch48: php-5.5.0-opcache.patch
 
 
 # Fixes for tests
@@ -558,9 +559,17 @@ Group: Development/Languages
 # libgd is licensed under BSD
 License: PHP and BSD
 Requires: php-common%{?_isa} = %{version}-%{release}
+BuildRequires: t1lib-devel
+%if %{with_libgd}
+BuildRequires: gd-devel
+%else
 # Required to build the bundled GD library
-BuildRequires: libjpeg-devel, libpng-devel, freetype-devel
-BuildRequires: libXpm-devel, t1lib-devel
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
+BuildRequires: freetype-devel
+BuildRequires: libXpm-devel
+BuildRequires: libvpx-devel
+%endif
 
 %description gd
 The php-gd package contains a dynamic shared object that will add
@@ -723,7 +732,6 @@ support for using the enchant library to PHP.
 %endif
 %patch46 -p1 -b .fixheader
 %patch47 -p1 -b .phpinfo
-%patch48 -p1 -b .opcache
 
 # Prevent %%doc confusion over LICENSE files
 cp Zend/LICENSE Zend/ZEND_LICENSE
@@ -867,6 +875,7 @@ ln -sf ../configure
     --with-freetype-dir=%{_prefix} \
     --with-png-dir=%{_prefix} \
     --with-xpm-dir=%{_prefix} \
+    --with-vpx-dir=%{_prefix} \
     --enable-gd-native-ttf \
     --with-t1lib=%{_prefix} \
     --without-gdbm \
@@ -901,7 +910,11 @@ build --libdir=%{_libdir}/php \
       --with-imap=shared --with-imap-ssl \
       --enable-mbstring=shared \
       --enable-mbregex \
+%if %{with_libgd}
+      --with-gd=shared,%{_prefix} \
+%else
       --with-gd=shared \
+%endif
       --with-gmp=shared \
       --enable-calendar=shared \
       --enable-bcmath=shared \
@@ -1027,7 +1040,11 @@ build --includedir=%{_includedir}/php-zts \
       --with-imap=shared --with-imap-ssl \
       --enable-mbstring=shared \
       --enable-mbregex \
+%if %{with_libgd}
+      --with-gd=shared,%{_prefix} \
+%else
       --with-gd=shared \
+%endif
       --with-gmp=shared \
       --enable-calendar=shared \
       --enable-bcmath=shared \
@@ -1289,10 +1306,8 @@ for mod in pgsql odbc ldap snmp xmlrpc imap \
     fi
     # some extensions have their own config file
     if [ -f ${ini} ]; then
-      sed -e 's:@EXTPATH@:%{_libdir}/php/modules:' \
-             ${ini} >$RPM_BUILD_ROOT%{_sysconfdir}/php.d/${ini}
-      sed -e 's:@EXTPATH@:%{_libdir}/php-zts/modules:' \
-             ${ini} >$RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/${ini}
+      cp -p ${ini} $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${ini}
+      cp -p ${ini} $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/${ini}
     else
       cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${ini} <<EOF
 ; Enable ${mod} extension module
@@ -1499,6 +1514,7 @@ fi
 %attr(770,apache,root) %dir %{_localstatedir}/log/php-fpm
 %dir /run/php-fpm
 %{_mandir}/man8/php-fpm.8*
+%dir %{_datadir}/fpm
 %{_datadir}/fpm/status.html
 %endif
 
@@ -1559,6 +1575,14 @@ fi
 
 
 %changelog
+* Thu Apr 25 2013 Remi Collet <rcollet@redhat.com> 5.5.0-0.5.beta4
+- update to 5.5.0beta4
+- zend_extension doesn't requires full path
+- refresh patch for system libzip
+- drop opcache patch merged upstream
+- add BuildRequires libvpx-devel for WebP support in php-gd
+- php-fpm own /usr/share/fpm
+
 * Thu Apr 11 2013 Remi Collet <rcollet@redhat.com> 5.5.0-0.4.beta3
 - update to 5.5.0beta3
 - allow wildcard in opcache.blacklist_filename and provide

diff --git a/sources b/sources
index 5c3444e..5e9fea8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-7cf9b81a8e9a28b9431f3741d8916a9c  php-5.5.0beta3.tar.xz
+cba102154280dd16462150232dad9487  php-5.5.0beta4.tar.xz

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-27  7:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27  7:26 [rpms/php] private-php86: - update to 5.5.0beta4 Remi Collet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox