com php-src: Fix bug #65088 (Generated configure script is malformed on OpenBSD).: NEWS acinclude.m4
| From: | Adam Harvey | Date: | Sun, 23 Jun 2013 18:02:00 +0000 |
| Subject: | com php-src: Fix bug #65088 (Generated configure script is malformed on OpenBSD).: NEWS acinclude.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-72456@lists.php.net to get a copy of this message | ||
Commit: 2531307be601b95a4aac38dc26dd2d27112b9291
Author: Adam Harvey <aharvey@php.net> Sun, 23 Jun 2013 11:01:36 -0700
Parents: 8623562b02dd6759617ef78ddcb06bdfe7710329
Branches: PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2531307be601b95a4aac38dc26dd2d27112b9291
Log:
Fix bug #65088 (Generated configure script is malformed on OpenBSD).
We fell foul of a "common urban legend"[0], which resulted in us backslash
escaping double quotes that we didn't need to in acinclude.m4. This worked fine
on most shells, but OpenBSD's ksh implementation really didn't like it.
[0] http://www..gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Shell-Substitutions.html
Bugs:
https://bugs.php.net/65088
Changed paths:
M NEWS
M acinclude.m4
Diff:
diff --git a/NEWS b/NEWS
index 9612928..be774f8 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,10 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2013, PHP 5.4.18
+- Core:
+ . Fixed bug #65088 (Generated configure script is malformed on OpenBSD).
+ (Adam)
+
- CLI server:
. Fixed bug #65066 (Cli server not responsive when responding with 422 http
status code). (Adam)
diff --git a/acinclude.m4 b/acinclude.m4
index 350e498..d5912ad 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -66,10 +66,10 @@ AC_DEFUN([PHP_EXPAND_PATH],[
$2=$1
else
changequote({,})
- ep_dir="
echo $1|$SED 's%/*[^/][^/]*/*$%%'"
+ ep_dir=echo $1|$SED 's%/*[^/][^/]*/*$%%'
changequote([,])
- ep_realdir="(cd \"$ep_dir\" && pwd)"
- $2="$ep_realdir/basename \"$1\""
+ ep_realdir=(cd "$ep_dir" && pwd)
+ $2="$ep_realdir"/basename "$1"
fi
])