pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc Update lang/php5 to 5.2.0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e239567a2f84
branches:  trunk
changeset: 521219:e239567a2f84
user:      jdolecek <jdolecek%pkgsrc.org@localhost>
date:      Mon Nov 06 22:06:35 2006 +0000

description:
Update lang/php5 to 5.2.0.

Changes since 5.1.6:

The key features of PHP 5.2.0 include:
* New memory manager for the Zend Engine with improved performance and a more
  accurate memory usage tracking.
* Input filtering extension was added and enabled by default.
* JSON extension was added and enabled by default.
* ZIP extension for creating and editing zip files was introduced.
* Hooks for tracking file upload progress were introduced.
* Introduced E_RECOVERABLE_ERROR error mode.
* Introduced DateTime and DateTimeZone objects with methods to manipulate
  date/time information.
* Upgraded bundled SQLite, PCRE libraries.
* Upgraded OpenSSL, MySQL and PostgreSQL client libraries for Windows
  installations.
* Many performance improvements.
* Over 200 bug fixes.

Security Enhancements and Fixes in PHP 5.2.0:
* Made PostgreSQL escaping functions in PostgreSQL and PDO extension keep
  track of character set encoding whenever possible.
* Added allow_url_include, set to Off by default to disallow use of URLs
  for include and require.
* Disable realpath cache when open_basedir and safe_mode are being used.
* Improved safe_mode enforcement for error_log() function.
* Fixed a possible buffer overflow in the underlying code responsible
  for htmlspecialchars() and htmlentities() functions.
* Added missing safe_mode and open_basedir checks for the cURL extension.
* Fixed overflow is str_repeat() & wordwrap() functions on 64bit machines.
* Fixed handling of long paths inside the tempnam() function.
* Fixed safe_mode/open_basedir checks for session.save_path, allowing them
  to account for extra parameters.
* Fixed ini setting overload in the ini_restore() function.

For a full list of changes in PHP 5.2.0, see the ChangeLog:
        http://www.php.net/ChangeLog-5.php#5.2.0

Also other notable extensions changes:
* filePRO extension removed (not in PECL yet, php-filepro disabled for PHP5)
* JSON added (not enabled by default, packaged in php-json)
* filter added (enabled by default)
* wddx rewritten to native libxml2, fixing several encoding bugs

diffstat:

 databases/php-filepro/Makefile     |    5 +-
 lang/php5/Makefile                 |    3 +-
 lang/php5/Makefile.common          |    4 +-
 lang/php5/distinfo                 |   15 +---
 lang/php5/patches/patch-aa         |   21 -------
 lang/php5/patches/patch-ab         |   17 -----
 lang/php5/patches/patch-ak         |   14 ++--
 lang/php5/patches/patch-as         |   25 --------
 lang/php5/patches/patch-au         |   14 ----
 lang/php5/patches/patch-av         |   32 ----------
 meta-pkgs/php5-extensions/Makefile |  109 +++++++++++++++++++-----------------
 11 files changed, 75 insertions(+), 184 deletions(-)

diffs (truncated from 360 to 300 lines):

diff -r fed111e8a32d -r e239567a2f84 databases/php-filepro/Makefile
--- a/databases/php-filepro/Makefile    Mon Nov 06 22:02:07 2006 +0000
+++ b/databases/php-filepro/Makefile    Mon Nov 06 22:06:35 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2006/06/04 16:26:53 joerg Exp $
+# $NetBSD: Makefile,v 1.9 2006/11/06 22:06:35 jdolecek Exp $
 
 MODNAME=               filepro
 CATEGORIES+=           databases
@@ -6,6 +6,9 @@
 
 CONFLICTS=     php-filepro-[0-9]*
 
+# filepro extension removed in PHP 5.2.0, no replacement in PECL yet
+PHP_VERSIONS_ACCEPTED=  4
+
 CONFIGURE_ARGS+=       --with-${MODNAME}=shared
 
 .include "../../lang/php/ext.mk"
diff -r fed111e8a32d -r e239567a2f84 lang/php5/Makefile
--- a/lang/php5/Makefile        Mon Nov 06 22:02:07 2006 +0000
+++ b/lang/php5/Makefile        Mon Nov 06 22:06:35 2006 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.46 2006/11/04 11:27:55 adrianp Exp $
+# $NetBSD: Makefile,v 1.47 2006/11/06 22:06:35 jdolecek Exp $
 
 PKGNAME=               php-${PHP_BASE_VERS}
-PKGREVISION=           3
 CATEGORIES=            lang
 
 HOMEPAGE=              http://www.php.net/
diff -r fed111e8a32d -r e239567a2f84 lang/php5/Makefile.common
--- a/lang/php5/Makefile.common Mon Nov 06 22:02:07 2006 +0000
+++ b/lang/php5/Makefile.common Mon Nov 06 22:06:35 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.20 2006/08/28 12:17:10 taca Exp $
+# $NetBSD: Makefile.common,v 1.21 2006/11/06 22:06:35 jdolecek Exp $
 
 .if !defined(DISTNAME)
 DISTNAME=              php-${PHP_BASE_VERS}
@@ -16,7 +16,7 @@
 MAINTAINER?=           jdolecek%NetBSD.org@localhost
 HOMEPAGE?=             http://www.php.net/
 
-PHP_BASE_VERS=         5.1.6
+PHP_BASE_VERS=         5.2.0
 
 PHP_EXTENSION_DIR=     lib/php/20040412
 PLIST_SUBST+=          PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR:Q}
diff -r fed111e8a32d -r e239567a2f84 lang/php5/distinfo
--- a/lang/php5/distinfo        Mon Nov 06 22:02:07 2006 +0000
+++ b/lang/php5/distinfo        Mon Nov 06 22:06:35 2006 +0000
@@ -1,15 +1,10 @@
-$NetBSD: distinfo,v 1.32 2006/11/04 11:27:55 adrianp Exp $
+$NetBSD: distinfo,v 1.33 2006/11/06 22:06:35 jdolecek Exp $
 
-SHA1 (php-5.1.6/php-5.1.6.tar.bz2) = a20b946f1de0a8a35a8a6bf437adbba4e5448d27
-RMD160 (php-5.1.6/php-5.1.6.tar.bz2) = 7ac52f4674532397c982f6ced594b70dd17522af
-Size (php-5.1.6/php-5.1.6.tar.bz2) = 6454408 bytes
-SHA1 (patch-aa) = c1ba60ea1e8df9242b1f3c5078808c7968cf0de8
-SHA1 (patch-ab) = e91b34cd6cfadcc7f39e5832241ea711f1c0f827
+SHA1 (php-5.2.0/php-5.2.0.tar.bz2) = 6306829b1b252156ca3a936ec809aba89a71d9e1
+RMD160 (php-5.2.0/php-5.2.0.tar.bz2) = baabe854ac219935ed9f58d348ebf08fb84853de
+Size (php-5.2.0/php-5.2.0.tar.bz2) = 6789838 bytes
 SHA1 (patch-ac) = 4f8714134977e6cef25df23b60ceea50c2aee6d0
 SHA1 (patch-ag) = 4ccb67ba6f5370b1d16b087e3e714de3e5ae604e
 SHA1 (patch-ah) = c7cbd4b9ea0796ea3b7491c2cffb6ddddc518587
 SHA1 (patch-aj) = 54812097499c81e5cb0196ab949cc86a4f24a9cc
-SHA1 (patch-ak) = 2d5264d33ebef631d4a2d0cdf8a2ed365bdbeb7e
-SHA1 (patch-as) = 4fc74c8e8d0a7a152a7bbe1672ad0834021db16c
-SHA1 (patch-au) = 90264101db6c2f000c30d1f513392acec781202b
-SHA1 (patch-av) = b14aed514e801e58deec95ecdda107a1c6b5457d
+SHA1 (patch-ak) = 0a6445b5cf390cb63de8474d75c6e8a4c058afab
diff -r fed111e8a32d -r e239567a2f84 lang/php5/patches/patch-aa
--- a/lang/php5/patches/patch-aa        Mon Nov 06 22:02:07 2006 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-$NetBSD: patch-aa,v 1.1 2006/10/22 13:19:19 adrianp Exp $
-
-# CVE-2006-4812
-
---- Zend/zend_alloc.c.orig     2006-08-10 18:16:24.000000000 +0100
-+++ Zend/zend_alloc.c
-@@ -331,12 +331,12 @@ ZEND_API void *_ecalloc(size_t nmemb, si
-       int final_size = size*nmemb;
-       
-       HANDLE_BLOCK_INTERRUPTIONS();
--      p = _emalloc(final_size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
-+      p = _safe_emalloc(nmemb, size, 0 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
-       if (!p) {
-               HANDLE_UNBLOCK_INTERRUPTIONS();
-               return (void *) p;
-       }
--      memset(p, 0, final_size);
-+      memset(p, 0, size * nmemb);
-       HANDLE_UNBLOCK_INTERRUPTIONS();
-       return p;
- }
diff -r fed111e8a32d -r e239567a2f84 lang/php5/patches/patch-ab
--- a/lang/php5/patches/patch-ab        Mon Nov 06 22:02:07 2006 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2006/10/22 13:19:19 adrianp Exp $
-
-# CVE-2006-4625
-
---- Zend/zend_ini.c.orig       2006-01-04 23:53:04.000000000 +0000
-+++ Zend/zend_ini.c
-@@ -256,8 +256,8 @@ ZEND_API int zend_restore_ini_entry(char
-       zend_ini_entry *ini_entry;
-       TSRMLS_FETCH();
- 
--      if (zend_hash_find(EG(ini_directives), name, name_length, (void **) &ini_entry)==FAILURE) {
--              return FAILURE;
-+      if (zend_hash_find(EG(ini_directives), name, name_length, (void **) &ini_entry)==FAILURE ||
-+          (stage == ZEND_INI_STAGE_RUNTIME && (ini_entry->modifiable & ZEND_INI_USER) == 0)) {                return FAILURE;
-       }
- 
-       zend_restore_ini_entry_cb(ini_entry, stage TSRMLS_CC);
diff -r fed111e8a32d -r e239567a2f84 lang/php5/patches/patch-ak
--- a/lang/php5/patches/patch-ak        Mon Nov 06 22:02:07 2006 +0000
+++ b/lang/php5/patches/patch-ak        Mon Nov 06 22:06:35 2006 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-ak,v 1.2 2006/02/06 06:39:59 martti Exp $
+$NetBSD: patch-ak,v 1.3 2006/11/06 22:06:35 jdolecek Exp $
 
---- ext/imap/php_imap.c.orig   2006-01-05 02:47:16.000000000 +0200
-+++ ext/imap/php_imap.c        2006-02-05 15:37:19.000000000 +0200
-@@ -429,6 +429,11 @@
- 
-       ZEND_INIT_MODULE_GLOBALS(imap, php_imap_init_globals, NULL)
+--- ext/imap/php_imap.c.orig   2006-10-05 16:25:41.000000000 +0200
++++ ext/imap/php_imap.c
+@@ -441,6 +441,11 @@ PHP_MINIT_FUNCTION(imap)
+ {
+       unsigned long sa_all =  SA_MESSAGES | SA_RECENT | SA_UNSEEN | SA_UIDNEXT | SA_UIDVALIDITY;
  
 +/*
 + * Optionally use the installed c-client linkage.c to determine which drivers
@@ -14,7 +14,7 @@
  #ifndef PHP_WIN32
        mail_link(&unixdriver);         /* link in the unix driver */
        mail_link(&mhdriver);           /* link in the mh driver */
-@@ -444,6 +449,10 @@
+@@ -456,6 +461,10 @@ PHP_MINIT_FUNCTION(imap)
        mail_link(&tenexdriver);        /* link in the tenex driver */
        mail_link(&mtxdriver);          /* link in the mtx driver */
        mail_link(&dummydriver);        /* link in the dummy driver */
diff -r fed111e8a32d -r e239567a2f84 lang/php5/patches/patch-as
--- a/lang/php5/patches/patch-as        Mon Nov 06 22:02:07 2006 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-$NetBSD: patch-as,v 1.2 2006/08/19 16:44:15 taca Exp $
-
---- ext/date/lib/timelib_structs.h.orig        2006-04-12 03:03:52.000000000 +0900
-+++ ext/date/lib/timelib_structs.h
-@@ -21,7 +21,7 @@
- #ifndef __TIMELIB_STRUCTS_H__
- #define __TIMELIB_STRUCTS_H__
- 
--#include <timelib_config.h>
-+#include "timelib_config.h"
- 
- #ifdef HAVE_SYS_TYPES_H
- #include <sys/types.h>
-@@ -183,7 +183,11 @@ typedef struct _timelib_tzdb {
- #define TIMELIB_ZONETYPE_ABBR   2
- #define TIMELIB_ZONETYPE_ID     3
- 
-+#if defined(SIZEOF_LONG_LONG_INT) && (SIZEOF_LONG_LONG_INT == 8)
-+#define SECS_PER_ERA 12622780800LL
-+#else
- #define SECS_PER_ERA 12622780800L
-+#endif
- #define SECS_PER_DAY       86400
- #define DAYS_PER_YEAR        365
- #define DAYS_PER_LYEAR       366
diff -r fed111e8a32d -r e239567a2f84 lang/php5/patches/patch-au
--- a/lang/php5/patches/patch-au        Mon Nov 06 22:02:07 2006 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-$NetBSD: patch-au,v 1.1 2006/05/23 22:55:23 jdolecek Exp $
-
---- ext/wddx/wddx.c.orig       2006-05-24 00:39:34.000000000 +0200
-+++ ext/wddx/wddx.c
-@@ -399,7 +399,8 @@ static void php_wddx_serialize_string(wd
-                                       break;
- 
-                               default:
--                                      if (iscntrl((int)*(unsigned char *)p)) {
-+                                      if (iscntrl((int)*(unsigned char *)p)
-+                                          && isascii((int)*(unsigned char *)p)) {
-                                               FLUSH_BUF();
-                                               sprintf(control_buf, WDDX_CHAR, *p);
-                                               php_wddx_add_chunk(packet, control_buf);
diff -r fed111e8a32d -r e239567a2f84 lang/php5/patches/patch-av
--- a/lang/php5/patches/patch-av        Mon Nov 06 22:02:07 2006 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-$NetBSD: patch-av,v 1.3 2006/11/04 11:27:55 adrianp Exp $
-
-# CVE-2006-5465
-
---- ext/standard/html.c.orig   2006-02-25 21:32:11.000000000 +0000
-+++ ext/standard/html.c
-@@ -1096,7 +1096,7 @@ PHPAPI char *php_escape_html_entities(un
- 
-               matches_map = 0;
- 
--              if (len + 9 > maxlen)
-+              if (len + 16 > maxlen)
-                       replaced = erealloc (replaced, maxlen += 128);
- 
-               if (all) {
-@@ -1121,9 +1121,15 @@ PHPAPI char *php_escape_html_entities(un
-                       }
- 
-                       if (matches_map) {
-+                              int l = strlen(rep);
-+                              /* increase the buffer size */
-+                              if (len + 2 + l >= maxlen) {
-+                                      replaced = erealloc(replaced, maxlen += 128);
-+                              }
-+
-                               replaced[len++] = '&';
-                               strcpy(replaced + len, rep);
--                              len += strlen(rep);
-+                              len += l;
-                               replaced[len++] = ';';
-                       }
-               }
diff -r fed111e8a32d -r e239567a2f84 meta-pkgs/php5-extensions/Makefile
--- a/meta-pkgs/php5-extensions/Makefile        Mon Nov 06 22:02:07 2006 +0000
+++ b/meta-pkgs/php5-extensions/Makefile        Mon Nov 06 22:06:35 2006 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2006/10/20 21:56:38 jdolecek Exp $
+# $NetBSD: Makefile,v 1.20 2006/11/06 22:06:35 jdolecek Exp $
 
-DISTNAME=      php-extensions-5.1
-PKGREVISION=   5
+DISTNAME=      php-extensions-5.2
+#PKGREVISION=  1
 CATEGORIES=    meta-pkgs www php5
 MASTER_SITES=  # empty
 DISTFILES=     # empty
@@ -11,61 +11,64 @@
 COMMENT=       "meta-package" for the PHP5 HTML-embedded scripting language
 
 # base PHP 5.x package
-DEPENDS+=      php-5.1.*:../../lang/php5
-DEPENDS+=      ${APACHE_PKG_PREFIX}-php5-5.1.*:../../www/ap-php
+DEPENDS+=      php-5.2.*:../../lang/php5
+DEPENDS+=      ${APACHE_PKG_PREFIX}-php5-5.2.*:../../www/ap-php
 
 # extensions buildable with both PHP 4.x and PHP 5.x
-DEPENDS+=      php5-bcmath-5.1.*:../../math/php-bcmath
-DEPENDS+=      php5-bz2-5.1.*:../../archivers/php-bz2
-DEPENDS+=      php5-calendar-5.1.*:../../misc/php-calendar
-DEPENDS+=      php5-curl-5.1.*:../../www/php-curl
-DEPENDS+=      php5-dba-5.1.*:../../databases/php-dba
-DEPENDS+=      php5-dbase-5.1.*:../../databases/php-dbase
-DEPENDS+=      php5-dbx-5.1.*:../../databases/php-dbx
-# eaccelerator doesn't compile/work with 5.1
-# DEPENDS+=    php-eaccelerator-5.1.*:../../www/php-eaccelerator
-DEPENDS+=      php5-exif-5.1.*:../../graphics/php-exif
-DEPENDS+=      php5-filepro-5.1.*:../../databases/php-filepro
-DEPENDS+=      php5-ftp-5.1.*:../../net/php-ftp
-DEPENDS+=      php5-gd-5.1.*:../../graphics/php-gd
-DEPENDS+=      php5-gettext-5.1.*:../../devel/php-gettext
-DEPENDS+=      php5-gmp-5.1.*:../../devel/php-gmp
-DEPENDS+=      php5-iconv-5.1.*:../../converters/php-iconv
-DEPENDS+=      php5-imap-5.1.*:../../mail/php-imap
-DEPENDS+=      php5-ldap-5.1.*:../../databases/php-ldap
-DEPENDS+=      php5-mbstring-5.1.*:../../misc/php-mbstring
-DEPENDS+=      php5-mcrypt-5.1.*:../../security/php-mcrypt
-DEPENDS+=      php5-mhash-5.1.*:../../security/php-mhash
-DEPENDS+=      php5-mssql-5.1.*:../../databases/php-mssql
-DEPENDS+=      php5-mysql-5.1.*:../../databases/php-mysql
+DEPENDS+=      php5-apc-5.2.*:../../www/php-apc
+DEPENDS+=      php5-bcmath-5.2.*:../../math/php-bcmath
+DEPENDS+=      php5-bz2-5.2.*:../../archivers/php-bz2
+DEPENDS+=      php5-calendar-5.2.*:../../misc/php-calendar
+DEPENDS+=      php5-curl-5.2.*:../../www/php-curl
+DEPENDS+=      php5-dba-5.2.*:../../databases/php-dba
+DEPENDS+=      php5-dbase-5.2.*:../../databases/php-dbase
+DEPENDS+=      php5-dbx-5.2.*:../../databases/php-dbx
+DEPENDS+=      php5-eaccelerator-5.2.*:../../www/php-eaccelerator
+DEPENDS+=      php5-exif-5.2.*:../../graphics/php-exif
+# filepro extension removed in 5.2
+# DEPENDS+=    php5-filepro-5.2.*:../../databases/php-filepro
+DEPENDS+=      php5-ftp-5.2.*:../../net/php-ftp
+DEPENDS+=      php5-gd-5.2.*:../../graphics/php-gd
+DEPENDS+=      php5-gettext-5.2.*:../../devel/php-gettext
+DEPENDS+=      php5-gmp-5.2.*:../../devel/php-gmp
+DEPENDS+=      php5-iconv-5.2.*:../../converters/php-iconv
+DEPENDS+=      php5-imap-5.2.*:../../mail/php-imap
+DEPENDS+=      php5-json-5.2.*:../../textproc/php-json
+DEPENDS+=      php5-ldap-5.2.*:../../databases/php-ldap
+DEPENDS+=      php5-mbstring-5.2.*:../../misc/php-mbstring
+DEPENDS+=      php5-mcrypt-5.2.*:../../security/php-mcrypt



Home | Main Index | Thread Index | Old Index