From 00459e59dc0e6483be07c93b379c421d49e991d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Thu, 4 Feb 2016 22:49:33 +0100 Subject: [PATCH] - rel 2; restore 71475 fix (but still unclear) --- php-bug-71475.patch | 42 ++++++++++++++++++++++++++++++++++++++++++ php.spec | 6 +++--- 2 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 php-bug-71475.patch diff --git a/php-bug-71475.patch b/php-bug-71475.patch new file mode 100644 index 0000000..0a9ed6f --- /dev/null +++ b/php-bug-71475.patch @@ -0,0 +1,42 @@ +--- php-5.6.17/ext/openssl/openssl.c~ 2016-01-06 16:14:47.000000000 +0100 ++++ php-5.6.17/ext/openssl/openssl.c 2016-02-02 18:15:39.118449615 +0100 +@@ -4886,6 +4886,7 @@ PHP_FUNCTION(openssl_seal) + memset(eks, 0, sizeof(*eks) * nkeys); + key_resources = safe_emalloc(nkeys, sizeof(long), 0); + memset(key_resources, 0, sizeof(*key_resources) * nkeys); ++ memset(pkeys, 0, sizeof(*pkeys) * nkeys); + + /* get the public keys we are using to seal this data */ + zend_hash_internal_pointer_reset_ex(pubkeysht, &pos); +@@ -4958,7 +4959,7 @@ PHP_FUNCTION(openssl_seal) + + clean_exit: + for (i=0; i ++--FILE-- ++ ++DONE ++--EXPECTF-- ++ ++Warning: openssl_seal(): not a public key (1th member of pubkeys) in %s/bug71475.php on line %d ++DONE +\ No newline at end of file diff --git a/php.spec b/php.spec index 94644c8..17bc90b 100644 --- a/php.spec +++ b/php.spec @@ -153,7 +153,7 @@ ERROR: You need to select at least one Apache SAPI to build shared modules. %undefine with_filter %endif -%define rel 1 +%define rel 2 %define orgname php %define ver_suffix 56 %define php_suffix %{!?with_default_php:%{ver_suffix}} @@ -187,7 +187,7 @@ Patch0: %{orgname}-shared.patch Patch1: %{orgname}-pldlogo.patch Patch2: %{orgname}-mail.patch Patch3: %{orgname}-link-libs.patch - +Patch4: php-bug-71475.patch Patch5: %{orgname}-filter-shared.patch Patch6: %{orgname}-build_modules.patch Patch7: %{orgname}-sapi-ini-file.patch @@ -2023,7 +2023,7 @@ cp -p php.ini-production php.ini %patch1 -p1 %patch2 -p1 %patch3 -p1 - +%patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 -- 2.44.0