php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #80293 oniguruma not bundled in mbstring extension per docs
Submitted: 2020-10-28 19:03 UTC Modified: 2020-10-29 11:29 UTC
From: jmaguire at duo dot com Assigned: cmb (profile)
Status: Closed Package: mbstring related
PHP Version: 7.4.11 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jmaguire at duo dot com
New email:
PHP Version: OS:

 

 [2020-10-28 19:03 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-28 20:43 UTC] requinix@php.net
-Status: Open +Status: Verified -Type: Bug +Type: Documentation Problem -Package: Compile Failure +Package: mbstring related
 [2020-10-29 11:29 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2020-10-29 11:34 UTC] phpdocbot@php.net
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
 [2020-10-29 11:34 UTC] phpdocbot@php.net
-Status: Verified +Status: Closed
 [2020-10-29 14:45 UTC] phpdocbot@php.net
Automatic comment on behalf of mumumu
Revision: http://git.php.net/?p=doc/ja.git;a=commit;h=0319a2dc67c6131f9a663826fc26958b3cb09b6a
Log: Fix #80293: oniguruma not bundled in mbstring extension per docs
 [2020-12-30 11:58 UTC] nikic@php.net
Automatic comment on behalf of mumumu
Revision: http://git.php.net/?p=doc/ja.git;a=commit;h=be95ee9f907d9e8a3df79d0ecb41bbb744ff5486
Log: Fix #80293: oniguruma not bundled in mbstring extension per docs
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 02:01:27 2024 UTC