cvs: php-src(PHP_4_3) /ext/zip config.m4 php_zip.h zip.c

From: Date: Fri, 31 Dec 2004 02:57:09 +0000
Subject: cvs: php-src(PHP_4_3) /ext/zip config.m4 php_zip.h zip.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-29738@lists.php.net to get a copy of this message
iliaa Thu Dec 30 21:57:09 2004 EDT Modified files: (Branch: PHP_4_3) /php-src/ext/zip config.m4 php_zip.h zip.c Log: Fixed compiler warning when using newer versions of libzip. http://cvs.php.net/diff.php/php-src/ext/zip/config.m4?r1=1.5.2.1&r2=1.5.2.2&ty=u Index: php-src/ext/zip/config.m4 diff -u php-src/ext/zip/config.m4:1.5.2.1 php-src/ext/zip/config.m4:1.5.2.2 --- php-src/ext/zip/config.m4:1.5.2.1 Mon Dec 9 13:28:03 2002 +++ php-src/ext/zip/config.m4 Thu Dec 30 21:57:08 2004 @@ -1,5 +1,5 @@ dnl -dnl $Id: config.m4,v 1.5.2.1 2002/12/09 18:28:03 wez Exp $ +dnl $Id: config.m4,v 1.5.2.2 2004/12/31 02:57:08 iliaa Exp $ dnl PHP_ARG_WITH(zip,for ZIP support, @@ -20,6 +20,10 @@ AC_MSG_ERROR(Cannot find libzzip) fi + if test -f $ZZIPLIB_INCDIR/zzip/zzip.h; then + AC_DEFINE(HAVE_NEW_ZZIPLIB,1,[ ]) + fi + ZZIPLIB_LIBDIR=$ZZIPLIB_DIR/lib PHP_CHECK_LIBRARY(zzip, zzip_open, http://cvs.php.net/diff.php/php-src/ext/zip/php_zip.h?r1=1.7.4.1&r2=1.7.4.2&ty=u Index: php-src/ext/zip/php_zip.h diff -u php-src/ext/zip/php_zip.h:1.7.4.1 php-src/ext/zip/php_zip.h:1.7.4.2 --- php-src/ext/zip/php_zip.h:1.7.4.1 Tue Dec 31 11:35:47 2002 +++ php-src/ext/zip/php_zip.h Thu Dec 30 21:57:08 2004 @@ -21,7 +21,11 @@ #if HAVE_ZZIPLIB +#ifdef HAVE_NEW_ZZIPLIB +#include <zzip/zzip.h> +#else #include <zziplib.h> +#endif extern zend_module_entry zip_module_entry; #define phpext_zip_ptr &zip_module_entry http://cvs.php.net/diff.php/php-src/ext/zip/zip.c?r1=1.33.2.2&r2=1.33.2.3&ty=u Index: php-src/ext/zip/zip.c diff -u php-src/ext/zip/zip.c:1.33.2.2 php-src/ext/zip/zip.c:1.33.2.3 --- php-src/ext/zip/zip.c:1.33.2.2 Fri Mar 7 08:42:21 2003 +++ php-src/ext/zip/zip.c Thu Dec 30 21:57:08 2004 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zip.c,v 1.33.2.2 2003/03/07 13:42:21 ddhill Exp $ */ +/* $Id: zip.c,v 1.33.2.3 2004/12/31 02:57:08 iliaa Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -29,7 +29,12 @@ #if HAVE_ZZIPLIB #include "ext/standard/info.h" + +#ifdef HAVE_NEW_ZZIPLIB +#include <zzip/zzip.h> +#else #include <zziplib.h> +#endif #ifndef O_BINARY #define O_BINARY 0

« previous php.cvs (#29738) next »