com php-src: fix #72180 (Env variables incorrectly pretty printed in config.nice, phpinfo): acinclude.m4
| From: | Joe Watkins | Date: | Fri, 13 May 2016 06:41:11 +0000 |
| Subject: | com php-src: fix #72180 (Env variables incorrectly pretty printed in config.nice, phpinfo): acinclude.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92112@lists.php.net to get a copy of this message | ||
Commit: 1bb8a7b0b895af4a9e6b24101fe8fab5af64f86c
Author: Joe Watkins <krakjoe@php.net> Fri, 13 May 2016 07:41:11 +0100
Parents: f751b1ceafe6666cc54151eb8ca9d8b47ae2d077
Branches: PHP-7.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1bb8a7b0b895af4a9e6b24101fe8fab5af64f86c
Log:
fix #72180 (Env variables incorrectly pretty printed in config.nice, phpinfo)
Bugs:
https://bugs.php.net/72180
Changed paths:
M acinclude.m4
Diff:
diff --git a/acinclude.m4 b/acinclude.m4
index e828de1..7105b69 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -2690,12 +2690,24 @@ EOF
if test
expr -- $arg : "-.*" = 0 && test expr -- $arg :
".*=.*" = 0; then
continue;
fi
+ for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS EXTRA_LDFLAGS_PROGRAM LIBS CC CXX; do
+ if test expr $arg : ".*${var}.*" != 0;
+ then
+ continue 2
+ fi
+ done
echo "'[$]arg' \\" >> $1
CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS '[$]arg'"
else
if test expr -- $arg : "'-.*" = 0 && test expr --
$arg : "'.*=.*" = 0; then
continue;
fi
+ for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS EXTRA_LDFLAGS_PROGRAM LIBS CC CXX; do
+ if test expr $arg : ".*${var}.*" != 0;
+ then
+ continue 2
+ fi
+ done
echo "[$]arg \\" >> $1
CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS [$]arg"
fi