[packages/php/PHP_5_5] up to 5.5.0alpha1
glen
glen at pld-linux.org
Sat Nov 17 15:48:06 CET 2012
commit 9efb51021ecaab5bfa98f50e8d126668c42dba8c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Nov 17 16:46:48 2012 +0200
up to 5.5.0alpha1
embedded logo needs to be redone for DATA URI's in suhosin and pld logos
suhosin patch needs to be updated for expose_php changes
php.spec | 31 +++++-----
suhosin.patch | 179 +++++++++++++++++++++++++++++-----------------------------
2 files changed, 107 insertions(+), 103 deletions(-)
---
diff --git a/php.spec b/php.spec
index a54b4ae..ccd2f54 100644
--- a/php.spec
+++ b/php.spec
@@ -124,9 +124,10 @@ ERROR: You need to select at least one Apache SAPI to build shared modules.
%endif
%define orgname php
-%define php_suffix 54
+%define php_suffix 55
-%define rel 0.20
+%define rel 0.1
+%define subver alpha1
Summary: PHP: Hypertext Preprocessor
Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
Summary(pl.UTF-8): Język skryptowy PHP
@@ -134,13 +135,13 @@ Summary(pt_BR.UTF-8): A linguagem de script PHP
Summary(ru.UTF-8): PHP Версии 5 - язык препроцессирования HTML-файлов, выполняемый на сервере
Summary(uk.UTF-8): PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
Name: %{orgname}%{php_suffix}
-Version: 5.4.8
-Release: %{rel}%{?with_type_hints:.th}%{?with_oci8:.oci}
+Version: 5.5.0
+Release: %{rel}%{?subver:.%{subver}}%{?with_type_hints:.th}%{?with_oci8:.oci}
Epoch: 4
License: PHP
Group: Libraries
-Source0: http://www.php.net/distributions/%{orgname}-%{version}.tar.bz2
-# Source0-md5: bb8c816a9299be8995255ef70c63b800
+Source0: http://downloads.php.net/dsp/%{orgname}-%{version}%{subver}.tar.xz
+# Source0-md5: 2fb61817fad8e059d6fc846c69803e2d
Source2: %{orgname}-mod_%{orgname}.conf
Source3: %{orgname}-cgi-fcgi.ini
Source4: %{orgname}-apache.ini
@@ -241,7 +242,7 @@ BuildRequires: gd-devel(imagerotate) = 5.2.0
BuildRequires: gdbm-devel
BuildRequires: gmp-devel
%{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
-%{?with_intl:BuildRequires: libicu-devel}
+%{?with_intl:BuildRequires: libicu-devel >= 4.4}
BuildRequires: libjpeg-devel
BuildRequires: libltdl-devel >= 1.4
BuildRequires: libmcrypt-devel >= 2.4.4
@@ -276,6 +277,8 @@ BuildRequires: readline-devel
BuildRequires: rpm >= 4.4.9-56
BuildRequires: rpm-build >= 4.4.0
BuildRequires: rpmbuild(macros) >= 1.566
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
%if %{with sqlite3} || %{with pdo_sqlite}
BuildRequires: sqlite3-devel >= 3.3.9
%endif
@@ -302,19 +305,19 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sysconfdir %{php_sysconfdir}
# must be in sync with source. extra check ensuring that it is so is done in %%build
-%define php_api_version 20100412
-%define zend_module_api 20100525
-%define zend_extension_api 220100525
+%define php_api_version 20121113
+%define zend_module_api 20121113
+%define zend_extension_api 220121113
# Extension versions
%define bz2ver 1.0
%define enchantver 1.1.0
-%define fileinfover 1.0.5
+%define fileinfover 1.0.5-dev
%define hashver 1.0
%define intlver 1.1.0
%define jsonver 1.2.1
%define pharver 2.0.1
-%define sqlite3ver 0.7
+%define sqlite3ver 0.7-dev
%define zipver 1.11.0
%define zend_zts %{!?with_zts:0}%{?with_zts:1}
@@ -1861,9 +1864,9 @@ compression support to PHP.
Moduł PHP umożliwiający używanie kompresji zlib.
%prep
-%setup -q -n %{orgname}-%{version}
+%setup -q -n %{orgname}-%{version}%{?subver}
%patch0 -p1
-%patch1 -p1
+#%patch1 -p1 # redo with _DATA_URI
%patch2 -p1
%patch3 -p1
%patch4 -p1
diff --git a/suhosin.patch b/suhosin.patch
index 3452120..d3bc214 100644
--- a/suhosin.patch
+++ b/suhosin.patch
@@ -9,16 +9,16 @@ the following modifications have been made:
* removed changes to ./configure & ./main/php_config.h.in since those
files are autogenerated
* "quilt refresh" has been run to clean up the offsets, etc
- * chunk adjusted for PLD Logo patch
---- a/Zend/Makefile.am
-+++ b/Zend/Makefile.am
-@@ -17,7 +17,8 @@ libZend_la_SOURCES=\
- zend_objects_API.c zend_ts_hash.c zend_stream.c \
+ * logo patch disabled (needs porting to DATA_URIs)
+ * expose php disabled (unref symbols)
+--- php-5.5.0alpha1/Zend/Makefile.am~ 2012-11-13 22:00:16.000000000 +0200
++++ php-5.5.0alpha1/Zend/Makefile.am 2012-11-17 13:37:04.263279745 +0200
+@@ -18,7 +18,7 @@
zend_default_classes.c \
zend_iterators.c zend_interfaces.c zend_exceptions.c \
-- zend_strtod.c zend_closures.c zend_float.c zend_string.c zend_signal.c
-+ zend_strtod.c zend_closures.c zend_float.c zend_string.c zend_signal.c \
-+ zend_canary.c zend_alloc_canary.c
+ zend_strtod.c zend_closures.c zend_float.c zend_string.c zend_signal.c \
+- zend_generators.c
++ zend_generators.c zend_canary.c zend_alloc_canary.c
libZend_la_LDFLAGS =
libZend_la_LIBADD = @ZEND_EXTRA_LIBS@
@@ -4447,8 +4447,8 @@ the following modifications have been made:
break;
case IS_ARRAY:
case IS_CONSTANT_ARRAY:
---- a/configure.in
-+++ b/configure.in
+--- php-5.5.0alpha1/configure.in~ 2012-11-17 13:36:25.000000000 +0200
++++ php-5.5.0alpha1/configure.in 2012-11-17 13:37:55.705648875 +0200
@@ -359,6 +359,7 @@ case $host_alias in
;;
esac
@@ -4457,21 +4457,22 @@ the following modifications have been made:
dnl Include Zend and TSRM configurations.
dnl -------------------------------------------------------------------------
-@@ -1440,7 +1441,7 @@ PHP_ADD_SOURCES(main, main.c snprintf.c
+@@ -1439,7 +1439,7 @@
php_ini.c SAPI.c rfc1867.c php_content_types.c strlcpy.c \
strlcat.c mergesort.c reentrancy.c php_variables.c php_ticks.c \
- network.c php_open_temporary_file.c php_logos.c \
+ network.c php_open_temporary_file.c \
- output.c getopt.c)
-+ output.c getopt.c suhosin_patch.c )
++ output.c getopt.c suhosin_patch.c)
PHP_ADD_SOURCES(main/streams, streams.c cast.c memory.c filter.c \
plain_wrapper.c userspace.c transports.c xp_socket.c mmap.c \
-@@ -1468,7 +1469,7 @@ PHP_ADD_SOURCES(Zend, \
+@@ -1467,7 +1467,8 @@
zend_list.c zend_indent.c zend_builtin_functions.c zend_sprintf.c \
zend_ini.c zend_qsort.c zend_multibyte.c zend_ts_hash.c zend_stream.c \
zend_iterators.c zend_interfaces.c zend_exceptions.c zend_strtod.c zend_gc.c \
-- zend_closures.c zend_float.c zend_string.c zend_signal.c)
-+ zend_closures.c zend_float.c zend_string.c zend_signal.c zend_canary.c zend_alloc_canary.c )
+- zend_closures.c zend_float.c zend_string.c zend_signal.c zend_generators.c)
++ zend_closures.c zend_float.c zend_string.c zend_signal.c zend_generators.c \
++ zend_canary.c zend_alloc_canary.c)
if test -r "$abs_srcdir/Zend/zend_objects.c"; then
PHP_ADD_SOURCES(Zend, zend_objects.c zend_object_handlers.c zend_objects_API.c zend_default_classes.c)
@@ -4501,42 +4502,42 @@ the following modifications have been made:
return SUCCESS;
}
/* }}} */
---- a/ext/standard/info.c
-+++ b/ext/standard/info.c
-@@ -785,6 +785,33 @@ PHPAPI void php_print_info(int flag TSRM
-
- php_info_print_table_end();
-
-+ /* Suhosin Patch */
-+ php_info_print_box_start(0);
-+ if (expose_php && !sapi_module.phpinfo_as_text) {
-+ PUTS("<a href=\"http://www.suhosin.org\"><img border=\"0\" src=\"");
-+ if (SG(request_info).request_uri) {
-+ char *elem_esc = php_info_html_esc(SG(request_info).request_uri TSRMLS_CC);
-+ PUTS(elem_esc);
-+ efree(elem_esc);
-+ }
-+ PUTS("?="SUHOSIN_LOGO_GUID"\" alt=\"Suhosin logo\" /></a>\n");
-+ }
-+ PUTS("This server is protected with the Suhosin Patch ");
-+ if (sapi_module.phpinfo_as_text) {
-+ PUTS(SUHOSIN_PATCH_VERSION);
-+ } else {
-+ zend_html_puts(SUHOSIN_PATCH_VERSION, strlen(SUHOSIN_PATCH_VERSION) TSRMLS_CC);
-+ }
-+ PUTS(!sapi_module.phpinfo_as_text?"<br />":"\n");
-+ if (sapi_module.phpinfo_as_text) {
-+ PUTS("Copyright (c) 2006-2007 Hardened-PHP Project\n");
-+ PUTS("Copyright (c) 2007-2009 SektionEins GmbH\n");
-+ } else {
-+ PUTS("Copyright (c) 2006-2007 <a href=\"http://www.hardened-php.net/\">Hardened-PHP Project</a>\n");
-+ PUTS("Copyright (c) 2007-2009 <a href=\"http://www.sektioneins.de/\">SektionEins GmbH</a>\n");
-+ }
-+ php_info_print_box_end();
-+
- /* Zend Engine */
- php_info_print_box_start(0);
- if (expose_php && !sapi_module.phpinfo_as_text) {
+#--- a/ext/standard/info.c
+#+++ b/ext/standard/info.c
+#@@ -785,6 +785,33 @@ PHPAPI void php_print_info(int flag TSRM
+#
+# php_info_print_table_end();
+#
+#+ /* Suhosin Patch */
+#+ php_info_print_box_start(0);
+#+ if (expose_php && !sapi_module.phpinfo_as_text) {
+#+ PUTS("<a href=\"http://www.suhosin.org\"><img border=\"0\" src=\"");
+#+ if (SG(request_info).request_uri) {
+#+ char *elem_esc = php_info_html_esc(SG(request_info).request_uri TSRMLS_CC);
+#+ PUTS(elem_esc);
+#+ efree(elem_esc);
+#+ }
+#+ PUTS("?="SUHOSIN_LOGO_GUID"\" alt=\"Suhosin logo\" /></a>\n");
+#+ }
+#+ PUTS("This server is protected with the Suhosin Patch ");
+#+ if (sapi_module.phpinfo_as_text) {
+#+ PUTS(SUHOSIN_PATCH_VERSION);
+#+ } else {
+#+ zend_html_puts(SUHOSIN_PATCH_VERSION, strlen(SUHOSIN_PATCH_VERSION) TSRMLS_CC);
+#+ }
+#+ PUTS(!sapi_module.phpinfo_as_text?"<br />":"\n");
+#+ if (sapi_module.phpinfo_as_text) {
+#+ PUTS("Copyright (c) 2006-2007 Hardened-PHP Project\n");
+#+ PUTS("Copyright (c) 2007-2009 SektionEins GmbH\n");
+#+ } else {
+#+ PUTS("Copyright (c) 2006-2007 <a href=\"http://www.hardened-php.net/\">Hardened-PHP Project</a>\n");
+#+ PUTS("Copyright (c) 2007-2009 <a href=\"http://www.sektioneins.de/\">SektionEins GmbH</a>\n");
+#+ }
+#+ php_info_print_box_end();
+#+
+# /* Zend Engine */
+# php_info_print_box_start(0);
+# if (expose_php && !sapi_module.phpinfo_as_text) {
--- a/ext/standard/syslog.c
+++ b/ext/standard/syslog.c
@@ -40,6 +40,7 @@
@@ -4641,30 +4642,30 @@ the following modifications have been made:
#endif
/*
---- php-5.4.6/main/php_logos.c~ 2012-08-23 12:04:01.000000000 +0300
-+++ php-5.4.6/main/php_logos.c 2012-08-23 12:04:39.401608052 +0300
-@@ -50,6 +50,10 @@ PHPAPI int php_unregister_info_logo(char
- return zend_hash_del(&phpinfo_logo_hash, logo_string, strlen(logo_string));
- }
-
-+#if SUHOSIN_PATCH
-+#include "suhosin_logo.h"
-+#endif
-+
- int php_init_info_logos(void)
- {
- if(zend_hash_init(&phpinfo_logo_hash, 0, NULL, NULL, 1)==FAILURE)
-@@ -64,6 +64,10 @@
- php_register_info_logo(ZEND_LOGO_GUID , "image/gif", zend_logo , sizeof(zend_logo));
- php_register_info_logo(PLD_LOGO_GUID , "image/png", pld_logo , sizeof(pld_logo));
-
-+#if SUHOSIN_PATCH
-+ php_register_info_logo(SUHOSIN_LOGO_GUID, "image/jpeg", suhosin_logo , sizeof(suhosin_logo));
-+#endif
-+
- return SUCCESS;
- }
-
+#--- php-5.4.6/main/php_logos.c~ 2012-08-23 12:04:01.000000000 +0300
+#+++ php-5.4.6/main/php_logos.c 2012-08-23 12:04:39.401608052 +0300
+#@@ -50,6 +50,10 @@ PHPAPI int php_unregister_info_logo(char
+# return zend_hash_del(&phpinfo_logo_hash, logo_string, strlen(logo_string));
+# }
+#
+#+#if SUHOSIN_PATCH
+#+#include "suhosin_logo.h"
+#+#endif
+#+
+# int php_init_info_logos(void)
+# {
+# if(zend_hash_init(&phpinfo_logo_hash, 0, NULL, NULL, 1)==FAILURE)
+#@@ -64,6 +64,10 @@
+# php_register_info_logo(ZEND_LOGO_GUID , "image/gif", zend_logo , sizeof(zend_logo));
+# php_register_info_logo(PLD_LOGO_GUID , "image/png", pld_logo , sizeof(pld_logo));
+#
+#+#if SUHOSIN_PATCH
+#+ php_register_info_logo(SUHOSIN_LOGO_GUID, "image/jpeg", suhosin_logo , sizeof(suhosin_logo));
+#+#endif
+#+
+# return SUCCESS;
+# }
+#
--- a/main/snprintf.c
+++ b/main/snprintf.c
@@ -782,6 +782,10 @@ static int format_converter(register buf
@@ -5615,12 +5616,12 @@ the following modifications have been made:
PHP_VERSION, cli_sapi_module.name, __DATE__, __TIME__,
#if ZEND_DEBUG && defined(HAVE_GCOV)
"(DEBUG GCOV)",
---- php-5.4.8/sapi/litespeed/lsapi_main.c~ 2012-10-16 13:05:41.000000000 +0300
-+++ php-5.4.8/sapi/litespeed/lsapi_main.c 2012-11-09 09:30:54.304162453 +0200
-@@ -718,11 +718,19 @@
- break;
- case 'v':
- if (php_request_startup(TSRMLS_C) != FAILURE) {
+--- php-5.5.0alpha1/sapi/litespeed/lsapi_main.c~ 2012-11-13 22:00:16.000000000 +0200
++++ php-5.5.0alpha1/sapi/litespeed/lsapi_main.c 2012-11-17 13:47:51.979828334 +0200
+@@ -546,11 +546,19 @@
+ break;
+ case 'v':
+ if (php_request_startup(TSRMLS_C) != FAILURE) {
+#if SUHOSIN_PATCH
+#if ZEND_DEBUG
+ php_printf("PHP %s with Suhosin-Patch (%s) (built: %s %s) (DEBUG)\nCopyright (c) 1997-2012 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
@@ -5629,9 +5630,9 @@ the following modifications have been made:
+#endif
+#else
#if ZEND_DEBUG
- php_printf("PHP %s (%s) (built: %s %s) (DEBUG)\nCopyright (c) 1997-2012 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
+ php_printf("PHP %s (%s) (built: %s %s) (DEBUG)\nCopyright (c) 1997-2012 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
#else
- php_printf("PHP %s (%s) (built: %s %s)\nCopyright (c) 1997-2012 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
+ php_printf("PHP %s (%s) (built: %s %s)\nCopyright (c) 1997-2012 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
#endif
+#endif
#ifdef PHP_OUTPUT_NEWAPI
@@ -5651,14 +5652,14 @@ the following modifications have been made:
php_output_teardown();
exit(1);
break;
---- a/win32/build/config.w32
-+++ b/win32/build/config.w32
-@@ -333,7 +333,7 @@ ADD_SOURCES("Zend", "zend_language_parse
+--- php-5.5.0alpha1/win32/build/config.w32~ 2012-11-17 13:39:12.000000000 +0200
++++ php-5.5.0alpha1/win32/build/config.w32 2012-11-17 13:48:11.720739542 +0200
+@@ -364,7 +364,7 @@
zend_stream.c zend_iterators.c zend_interfaces.c zend_objects.c \
zend_object_handlers.c zend_objects_API.c \
zend_default_classes.c zend_execute.c zend_strtod.c zend_gc.c zend_closures.c \
-- zend_float.c zend_string.c");
-+ zend_float.c zend_string.c zend_canary.c zend_alloc_canary.c");
+- zend_float.c zend_string.c zend_generators.c");
++ zend_float.c zend_string.c zend_generators.c zend_canary.c zend_alloc_canary.c");
if (VCVERS == 1200) {
AC_DEFINE('ZEND_DVAL_TO_LVAL_CAST_OK', 1);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/9efb51021ecaab5bfa98f50e8d126668c42dba8c
More information about the pld-cvs-commit
mailing list