From: Adam Harvey Date: Sun, 23 Jun 2013 18:01:36 +0000 (-0700) Subject: Fix bug #65088 (Generated configure script is malformed on OpenBSD). X-Git-Tag: php-5.5.2RC1~46^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2531307be601b95a4aac38dc26dd2d27112b9291;p=php 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 --- diff --git a/NEWS b/NEWS index 9612928523..be774f84f7 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 350e4989bb..d5912ad101 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 ])