[packages/php/PHP_7_1] - up to 7.1.22; fix mail patch on mails from CLI

arekm arekm at pld-linux.org
Fri Sep 14 11:47:22 CEST 2018


commit adff5a0ec22bef1e27847764d01b768fb50bb1d7
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Sep 14 11:47:14 2018 +0200

    - up to 7.1.22; fix mail patch on mails from CLI

 php-mail.patch | 22 +++++++++++-----------
 php.spec       |  6 +++---
 2 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/php.spec b/php.spec
index 0dda6d2..4cf99ad 100644
--- a/php.spec
+++ b/php.spec
@@ -150,8 +150,8 @@ Summary(pt_BR.UTF-8):	A linguagem de script PHP
 Summary(ru.UTF-8):	PHP Версии 7 - язык препроцессирования HTML-файлов, выполняемый на сервере
 Summary(uk.UTF-8):	PHP Версії 7 - мова препроцесування HTML-файлів, виконувана на сервері
 Name:		%{orgname}%{php_suffix}
-Version:	7.1.21
-Release:	3
+Version:	7.1.22
+Release:	1
 Epoch:		4
 # All files licensed under PHP version 3.01, except
 # Zend is licensed under Zend
@@ -159,7 +159,7 @@ Epoch:		4
 License:	PHP 3.01 and Zend and BSD
 Group:		Libraries
 Source0:	https://php.net/distributions/%{orgname}-%{version}.tar.xz
-# Source0-md5:	c3262432ad190d16c8d16f49d6b1cedf
+# Source0-md5:	d708374c749446beec8539f4fcdad8aa
 Source2:	%{orgname}-mod_php.conf
 Source3:	%{orgname}-cgi-fcgi.ini
 Source4:	%{orgname}-apache.ini
diff --git a/php-mail.patch b/php-mail.patch
index 5a80cc2..5b2adf0 100644
--- a/php-mail.patch
+++ b/php-mail.patch
@@ -1,6 +1,5 @@
-diff -ur php-7.1.18.org/ext/standard/mail.c php-7.1.18.new/ext/standard/mail.c
---- php-7.1.18.org/ext/standard/mail.c	2018-05-23 20:14:41.000000000 +0200
-+++ php-7.1.18.new/ext/standard/mail.c	2018-07-09 10:06:56.968650606 +0200
+--- php-7.1.22.org/ext/standard/mail.c	2018-09-11 16:08:35.000000000 +0200
++++ php-7.1.22/ext/standard/mail.c	2018-09-14 11:40:47.086119608 +0200
 @@ -46,6 +46,8 @@
  #include "php_ini.h"
  #include "php_string.h"
@@ -10,7 +9,7 @@ diff -ur php-7.1.18.org/ext/standard/mail.c php-7.1.18.new/ext/standard/mail.c
  
  #ifdef PHP_WIN32
  #include "win32/sendmail.h"
-@@ -125,6 +127,18 @@
+@@ -125,6 +127,18 @@ PHP_FUNCTION(mail)
  		MAIL_ASCIIZ_CHECK(ZSTR_VAL(extra_cmd), ZSTR_LEN(extra_cmd));
  	}
  
@@ -29,7 +28,7 @@ diff -ur php-7.1.18.org/ext/standard/mail.c php-7.1.18.new/ext/standard/mail.c
  	if (to_len > 0) {
  		to_r = estrndup(to, to_len);
  		for (; to_len; to_len--) {
-@@ -397,8 +411,41 @@
+@@ -397,8 +411,42 @@ PHPAPI int php_mail(char *to, char *subj
  			MAIL_RET(0);
  		}
  #endif
@@ -59,13 +58,14 @@ diff -ur php-7.1.18.org/ext/standard/mail.c php-7.1.18.new/ext/standard/mail.c
 +
 +					if (remote_addr && Z_TYPE_P(remote_addr) == IS_STRING)
 +						fprintf(sendmail, "HTTP-Posting-Client: %s\n", Z_STRVAL_P(remote_addr));
-+					if (server_name && Z_TYPE_P(server_name) == IS_STRING)
++					if (server_name && Z_TYPE_P(server_name) == IS_STRING) {
 +						fprintf(sendmail, "HTTP-Posting-URI: %s", Z_STRVAL_P(server_name));
-+					if (server_port && Z_TYPE_P(server_port) == IS_STRING)
-+						fprintf(sendmail, ":%s", Z_STRVAL_P(server_port));
-+					if (script_name && Z_TYPE_P(script_name) == IS_STRING)
-+						fprintf(sendmail, "%s", Z_STRVAL_P(script_name));
-+					fprintf(sendmail, "\n");
++						if (server_port && Z_TYPE_P(server_port) == IS_STRING)
++							fprintf(sendmail, ":%s", Z_STRVAL_P(server_port));
++						if (script_name && Z_TYPE_P(script_name) == IS_STRING)
++							fprintf(sendmail, "%s", Z_STRVAL_P(script_name));
++						fprintf(sendmail, "\n");
++					}
 +					if (http_user_agent && Z_TYPE_P(http_user_agent) == IS_STRING)
 +						fprintf(sendmail, "HTTP-Posting-User-Agent: %s\n", Z_STRVAL_P(http_user_agent));
 +		}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/adff5a0ec22bef1e27847764d01b768fb50bb1d7



More information about the pld-cvs-commit mailing list