Skip to content

Commit 660250f

Browse files
petkkrakjoe
authored andcommitted
Fix configure error
This patch fixes configure error on some systems such as Alpine. ``` line 3472: test: =: unary operator expected ``` One of the fixes has been suggested also here already: https://bugs.php.net/bug.php?id=39835 Thank you for considering merging this.
1 parent 81c2a4b commit 660250f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PHP NEWS
55
- Core:
66
. Fixed bug #74780 (parse_url() borken when query string contains colon).
77
(jhdxr)
8+
. Fixed bug #74761 (Unary operator expected error on some systems). (petk)
89

910
- SPL:
1011
. Fixed bug #73471 (PHP freezes with AppendIterator). (jhdxr)

acinclude.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2687,7 +2687,7 @@ EOF
26872687
done
26882688
26892689
echo "'[$]0' \\" >> $1
2690-
if test `expr -- [$]0 : "'.*"` = 0; then
2690+
if test `expr " [$]0" : " '.*"` = 0; then
26912691
CONFIGURE_COMMAND="$CONFIGURE_COMMAND '[$]0'"
26922692
else
26932693
CONFIGURE_COMMAND="$CONFIGURE_COMMAND [$]0"

0 commit comments

Comments
 (0)