Hello community, here is the log from the commit of package php7 for openSUSE:Factory checked in at 2018-02-21 14:09:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/php7 (Old) and /work/SRC/openSUSE:Factory/.php7.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "php7" Wed Feb 21 14:09:02 2018 rev:33 rq:578286 version:7.2.2 Changes: -------- --- /work/SRC/openSUSE:Factory/php7/php7.changes 2018-02-10 17:54:29.944099393 +0100 +++ /work/SRC/openSUSE:Factory/.php7.new/php7.changes 2018-02-21 14:09:11.627110813 +0100 @@ -1,0 +2,18 @@ +Mon Feb 19 18:39:04 UTC 2018 - crrodrig...@opensuse.org + +- Remove buildRequires on: + * libevent-devel: php7-fpm does not use it. + * pam-devel: not used +- Add buildrequire on zlib-devel explicitly. +- libvpx is not needed but libwebp is, only when not building + against system gd. xft likewise. + +------------------------------------------------------------------- +Mon Feb 19 09:30:33 UTC 2018 - pgaj...@suse.com + +- fixed memory leak in pgsql extension, php function pg_escape_bytea + https://bugs.php.net/bug.php?id=75838 + [bsc#1076970] (internal) + + php7-pgsql-memory-leak.patch + +------------------------------------------------------------------- New: ---- php7-pgsql-memory-leak.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ php7.spec ++++++ --- /var/tmp/diff_new_pack.NoP4un/_old 2018-02-21 14:09:13.031060256 +0100 +++ /var/tmp/diff_new_pack.NoP4un/_new 2018-02-21 14:09:13.035060112 +0100 @@ -89,6 +89,7 @@ Patch15: php7-fix_net-snmp_disable_MD5.patch # should be upstreamed, will do later Patch17: php7-date-regenerate-lexers.patch +Patch18: php7-pgsql-memory-leak.patch BuildRequires: apache-rpm-macros BuildRequires: apache2-devel BuildRequires: autoconf @@ -102,6 +103,9 @@ BuildRequires: gcc-c++ %if %{system_gd} BuildRequires: gd-devel +%else +BuildRequires: pkgconfig(libwebp) +BuildRequires: pkgconfig(xft) %endif BuildRequires: gmp-devel BuildRequires: imap-devel @@ -109,7 +113,6 @@ BuildRequires: libapparmor-devel BuildRequires: libbz2-devel BuildRequires: libedit-devel -BuildRequires: libevent-devel BuildRequires: libicu-devel BuildRequires: libjpeg-devel BuildRequires: libopenssl-devel @@ -124,7 +127,7 @@ BuildRequires: ncurses-devel BuildRequires: net-snmp-devel BuildRequires: openldap2-devel -BuildRequires: pam-devel +#BuildRequires: pam-devel BuildRequires: pcre-devel BuildRequires: pkgconfig BuildRequires: postfix @@ -135,9 +138,8 @@ BuildRequires: unixODBC-devel BuildRequires: update-alternatives BuildRequires: xz -BuildRequires: pkgconfig(vpx) -BuildRequires: pkgconfig(xft) BuildRequires: pkgconfig(xpm) +BuildRequires: pkgconfig(zlib) # 10.3 does not install sendmail binary with the minimal system Requires: smtp_daemon Requires: timezone @@ -1009,6 +1011,7 @@ %patch14 %patch15 %patch17 -p1 +%patch18 -p1 # Safety check for API version change. vapi=`sed -n '/#define PHP_API_VERSION/{s/.* //;p}' main/php.h` ++++++ php7-pgsql-memory-leak.patch ++++++ --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -4442,6 +4442,7 @@ PHP_FUNCTION(pg_escape_bytea) to = (char *)PQescapeBytea((unsigned char*)from, from_len, &to_len); RETVAL_STRINGL(to, to_len-1); /* to_len includes additional '\0' */ + PQfreemem(to); } /* }}} */