ports/devel/php72-readline/files/patch-config.m4
Torsten Zuehlsdorff 57bde0e17c lang/php72: Upgrade from 7.2.14 to 7.2.15
Changelog:

    Core:
        Fixed bug #77339 (__callStatic may get incorrect arguments).
        Fixed bug #77494 (Disabling class causes segfault on member access).
        Fixed bug #77530 (PHP crashes when parsing `(2)::class`).
    Curl:
        Fixed bug #76675 (Segfault with H2 server push).
    GD:
        Fixed bug #73281 (imagescale(…, IMG_BILINEAR_FIXED) can cause black border).
        Fixed bug #73614 (gdImageFilledArc() doesn't properly draw pies).
        Fixed bug #77272 (imagescale() may return image resource on failure).
        Fixed bug #77391 (1bpp BMPs may fail to be loaded).
        Fixed bug #77479 (imagewbmp() segfaults with very large images).
    ldap:
        Fixed bug #77440 (ldap_bind using ldaps or ldap_start_tls()=exception in libcrypto-1_1-x64.dll).
    Mbstring:
        Fixed bug #77454 (mb_scrub() silently truncates after a null byte).
    MySQLnd:
        Fixed bug #75684 (In mysqlnd_ext_plugin.h the plugin methods family has no external visibility).
    Opcache:
        Fixed bug #77361 (configure fails on 64-bit AIX when opcache enabled).
    OpenSSL:
        Fixed bug #77390 (feof might hang on TLS streams in case of fragmented TLS records).
    PDO:
        Fixed bug #77273 (array_walk_recursive corrupts value types leading to PDO failure).
    Sockets:
        Fixed bug #76839 (socket_recvfrom may return an invalid 'from' address on MacOS).
    Standard:
        Fixed bug #77395 (segfault about array_multisort).
        Fixed bug #77439 (parse_str segfaults when inserting item into existing array).

Changelog taken from: http://www.php.net/ChangeLog-7.php#7.2.15

PR:		235575 235577
MFH:		2019Q1
2019-02-08 10:55:42 +00:00

30 lines
1,002 B
Text

--- config.m4.orig 2019-02-05 15:43:40 UTC
+++ config.m4
@@ -5,13 +5,8 @@ dnl
PHP_ARG_WITH(libedit,for libedit readline replacement,
[ --with-libedit[=DIR] Include libedit readline replacement (CLI/CGI only)])
-if test "$PHP_LIBEDIT" = "no"; then
PHP_ARG_WITH(readline,for readline support,
[ --with-readline[=DIR] Include readline support (CLI/CGI only)])
-else
- dnl "register" the --with-readline option to preven invalid "unknown configure option" warning
- php_with_readline=no
-fi
if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
for i in $PHP_READLINE /usr/local /usr; do
@@ -74,6 +69,13 @@ if test "$PHP_READLINE" && test "$PHP_RE
-L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
])
+ PHP_CHECK_LIBRARY(readline, rl_completion_matches,
+ [
+ AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1, [ ])
+ ],[],[
+ -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
+ ])
+
AC_DEFINE(HAVE_LIBREADLINE, 1, [ ])
elif test "$PHP_LIBEDIT" != "no"; then