From: Sascha Schumann Date: Thu, 11 Jul 2002 13:33:22 +0000 (+0000) Subject: the variable interpolation was already subject to IFS treatment, X-Git-Tag: dev~356 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=808f05c205f5e8896c2f634252ca8d91e99485ec;p=php the variable interpolation was already subject to IFS treatment, which resulted in the execution of the foremost directory. we capture the output before setting IFS now --- diff --git a/sapi/apache/config.m4 b/sapi/apache/config.m4 index ec6101ede2..a652ee1440 100644 --- a/sapi/apache/config.m4 +++ b/sapi/apache/config.m4 @@ -3,10 +3,11 @@ dnl $Id$ dnl AC_DEFUN(PHP_AP_EXTRACT_VERSION,[ + ac_output=`$1 -v 2>&1` ac_IFS=$IFS IFS="- /. " - set `$1 -v 2>&1` + set $ac_output IFS=$ac_IFS APACHE_VERSION=`expr [$]4 \* 1000000 + [$]5 \* 1000 + [$]6`