Bug->Doc #80293 [Opn->Ver]: oniguruma not bundled in mbstring extension per docs
| From: | requinix@php.net | Date: | Wed, 28 Oct 2020 20:43:53 +0000 |
| Subject: | Bug->Doc #80293 [Opn->Ver]: oniguruma not bundled in mbstring extension per docs | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18045@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80293&edit=1
ID: 80293
Updated by: requinix@php.net
Reported by: jmaguire at duo dot com
Summary: oniguruma not bundled in mbstring extension per docs
-Status: Open
+Status: Verified
-Type: Bug
+Type: Documentation Problem
-Package: Compile Failure
+Package: mbstring related
Operating System: Linux
PHP Version: 7.4.11
Block user comment: N
Private report: N
New Comment:
Unbundled with https://github.com/php/php-src/commit/d1c1481081ef6280bf403b290501ca62d736cb8b
Previous Comments:
------------------------------------------------------------------------
[2020-10-28 19:03:47] jmaguire at duo dot com
Description:
------------
https://www.php.net/manual/en/mbstring.installation.php
> Oniguruma is necessary for the regular expression functions with multibyte character support.
> Oniguruma is bundled with mbstring. As of PHP 5.4.0, if Oniguruma is already installed on the
> system, --with-onig[=DIR] can be specified to use the installed library. As of PHP 7.4.0 --with-onig
> has been removed and pkg-config is now used to detect the libonig library.
In PHP 7.3.16, I see this directory, which contains the oniguruma source:
php-7.3.16/ext/mbstring/oniguruma
This file is not present in PHP 7.4.
On the same machine, PHP 7.3.16 compiled and installed correctly:
/opt/duo/third-party/php-7.3.16 # php -i | grep oniguruma
oniguruma version => 6.9.4
Multibyte regex (oniguruma) backtrack check => On
With PHP 7.4.11, this error is produced:
checking whether to enable multibyte string support... yes
checking whether to enable multibyte regex support (requires oniguruma)... yes
checking for oniguruma... no
configure: error: Package requirements (oniguruma) were not met:
Package 'oniguruma', required by 'virtual:world', not found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables ONIG_CFLAGS
and ONIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make: *** [Makefile.duo:15: Makefile] Error 1
Multibyte regex (oniguruma) version => 6.9.4
Expected result:
----------------
/opt/duo/third-party/php-7.3.16 # php -i | grep oniguruma
oniguruma version => 6.9.4
Multibyte regex (oniguruma) backtrack check => On
Actual result:
--------------
checking whether to enable multibyte string support... yes
checking whether to enable multibyte regex support (requires oniguruma)... yes
checking for oniguruma... no
configure: error: Package requirements (oniguruma) were not met:
Package 'oniguruma', required by 'virtual:world', not found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables ONIG_CFLAGS
and ONIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make: *** [Makefile.duo:15: Makefile] Error 1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80293&edit=1