Skip to content

Conversation

@petk
Copy link
Member

@petk petk commented Jun 23, 2019

When external PCRE library version is of format ##.##-RC# the check failed.

Merge to PHP-7.4 and up with:

git merge --no-ff --log -s ours PHP-7.3
...

When external PCRE library version is of format ##.##-RC# the check
failed.
AC_MSG_CHECKING(for PCRE2 10.30 or greater)
PCRE2_VER=`$PCRE2_CONF --version`
if test "`echo $PCRE2_VER | sed 's,\.,,g'`" -lt 1030; then
if test "`echo $PCRE2_VER | $SED 's/\([[0-9]]*\)\.\([[0-9]]*\)\(.\)*/\1\2/g'`" -lt "1030"; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the first two * should be + here. Also, why \(.\)* rather than just .*?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The + would work if sed -r would be used (regular expressions) which is on MacOS and FreeBSD sed -E option:
http://www.grymoire.com/Unix/Sed.html#uh-4a

The last asterisk has been fixed and simplified into .*...

@petk
Copy link
Member Author

petk commented Jul 1, 2019

Applied via 624488b to PHP-7.3

NEWS updated via b039a41

@petk petk closed this Jul 1, 2019
@petk petk deleted the patch-78197 branch July 1, 2019 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants