Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php8.1-mbstring causes startup warning on Ubuntu 18.04 #1674

Closed
1 task done
spideyfusion opened this issue Nov 9, 2021 · 2 comments
Closed
1 task done

php8.1-mbstring causes startup warning on Ubuntu 18.04 #1674

spideyfusion opened this issue Nov 9, 2021 · 2 comments

Comments

@spideyfusion
Copy link

spideyfusion commented Nov 9, 2021

Frequently asked questions

Describe the bug

After adding the php8.1-mbstring to an existing PHP installation, the following warning can be seen when running PHP from CLI:

user@ubuntu:~$ php -m
PHP Warning:  PHP Startup: ^(text/|application/xhtml\+xml) (offset=0): unrecognised compile-time option bit(s) in Unknown on line 0

The extension loads fine though because I can utilize the mb_ functions as expected.

Expected behavior

The warning above is not present on PHP startup.

Distribution (please complete the following information):

  • OS: Ubuntu 18.04
  • Architecture: amd64
  • Repository: Ubuntu PPA

Package(s) (please complete the following information):

php8.1-mbstring:
  Installed: 8.1.0~rc5-1+ubuntu18.04.1+deb.sury.org+2
  Candidate: 8.1.0~rc5-1+ubuntu18.04.1+deb.sury.org+2
  Version table:
 *** 8.1.0~rc5-1+ubuntu18.04.1+deb.sury.org+2 500
        500 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status

Additional context

I can't reproduce this on Ubuntu 21.10.

@oerdnj
Copy link
Owner

oerdnj commented Nov 9, 2021

That is not a packaging issue and needs to be reported directly to PHP. Feel free to add the link to the PHP bug here afterwards.

@oerdnj oerdnj closed this as completed Nov 9, 2021
@spideyfusion
Copy link
Author

Just an update that the issue occurred due to outdated pcre2 libraries on the system. Once I installed the latest available versions, the problem disappeared:

sudo apt-get install --only-upgrade libpcre2-16-0 libpcre2-32-0 libpcre2-8-0 libpcre2-dev libpcre2-posix2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants