Bug #81693 [NEW]: mb_check_encoding does not return a value but quits php

From: Date: Fri, 03 Dec 2021 14:27:54 +0000
Subject: Bug #81693 [NEW]: mb_check_encoding does not return a value but quits php
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-238132@lists.php.net to get a copy of this message
From: richardbrinkman at hotmail dot com Operating system: Debian (php:8.1-apache docker) PHP version: 8.1.0 Package: mbstring related Bug Type: Bug Bug description:mb_check_encoding does not return a value but quits php Description: ------------ Write a file test.php with the content of the attached test script: Run this script with "php test.php" results in: Segmentation fault (core dumped) I use the php:apache Docker image. If I run the same script with the php:8.0-apache Docker image then it will return the correct: bool(true) Both docker images install mbstring with: docker-php-ext-install mbstring Test script: --------------- <?php var_dump(mb_check_encoding('Hello world', '7bit')); ?> Expected result: ---------------- bool(true) Actual result: -------------- Segmentation fault (core dumped) -- Edit bug report at https://bugs.php.net/bug.php?id=81693&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=81693&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=81693&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=81693&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=81693&r=needscript Try newer version: https://bugs.php.net/fix.php?id=81693&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=81693&r=support Expected behavior: https://bugs.php.net/fix.php?id=81693&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=81693&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=81693&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=81693&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=81693&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=81693&r=dst IIS Stability: https://bugs.php.net/fix.php?id=81693&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=81693&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=81693&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=81693&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=81693&r=mysqlcfg

« previous php.bugs (#238132) next »