Doc #80293 [Ver->Csd]: oniguruma not bundled in mbstring extension per docs

From: Date: Thu, 29 Oct 2020 11:34:11 +0000
Subject: Doc #80293 [Ver->Csd]: oniguruma not bundled in mbstring extension per docs
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18046@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: phpdocbot@php.net Reported by: jmaguire at duo dot com Summary: oniguruma not bundled in mbstring extension per docs -Status: Verified +Status: Closed Type: Documentation Problem Package: mbstring related Operating System: Linux PHP Version: 7.4.11 Assigned To: cmb Block user comment: N Private report: N New Comment: Automatic comment on behalf of cmb Revision: http://git.php.net/?p=doc/en.git;a=commit;h=4df3260b89b68c99096afa87ccc8f261df8d5c37 Log: Fix #80293: oniguruma not bundled in mbstring extension per docs Previous Comments: ------------------------------------------------------------------------ [2020-10-28 20:43:53] requinix@php.net Unbundled with https://github.com/php/php-src/commit/d1c1481081ef6280bf403b290501ca62d736cb8b ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#18046) next »