Bug #78197 [NEW]: PCRE2 version check in `configure` fails for "##.##-xxx" version strings

From: Date: Sat, 22 Jun 2019 18:38:45 +0000
Subject: Bug #78197 [NEW]: PCRE2 version check in `configure` fails for "##.##-xxx" version strings
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221450@lists.php.net to get a copy of this message
From: pgnet dot dev at gmail dot com Operating system: linux64 PHP version: 7.3.6 Package: Compile Failure Bug Type: Bug Bug description:PCRE2 version check in configure fails for "##.##-xxx" version strings Description: ------------ Building PHP 7.3 against PCRE2/git which pcre2-config /usr/local/bin/pcre2-config pcre2-config --version 10.34-RC1 php configure fails ... checking for PCRE2 10.30 or greater... ./configure: line 19557: test: 1034-RC1: integer expression expected ... in 'configure', ... PCRE2_CONF=$PHP_PCRE_REGEX/bin/pcre2-config ... PCRE2_VER=$PCRE2_CONF --version 19557 if test "echo $PCRE2_VER | sed 's,\.,,g'" -lt 1030; then ... The problem's in the PCRE2 version string -- the configure step chokes on the "-RC1" in its version test. - 19557 if test "echo $PCRE2_VER | sed 's,\.,,g'" -lt 1030; then + 19557 if test "`echo $PCRE2_VER | sed 's,-.*,,g' | sed 's,\.,,g'`" -lt 1030; then does the trick ... checking for PCRE2 10.30 or greater... 10.34-RC1 ... -- Edit bug report at https://bugs.php.net/bug.php?id=78197&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78197&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78197&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78197&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=78197&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78197&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78197&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78197&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78197&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78197&r=support Expected behavior: https://bugs.php.net/fix.php?id=78197&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78197&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78197&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78197&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78197&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=78197&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78197&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78197&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78197&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78197&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78197&r=mysqlcfg

« previous php.bugs (#221450) next »