[php-src] Issue #12972: mb_substr returns a different value in PHP 8.4

From: Date: Tue, 19 Dec 2023 01:37:32 +0000
Subject: [php-src] Issue #12972: mb_substr returns a different value in PHP 8.4
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246072@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/12972 Author: MauricioFauth ### Description The following code: ```php <?php var_dump(bin2hex(mb_substr(hex2bin("8964"), 0, 1))); ``` Resulted in this output: ``` string(2) "3f" ``` But I expected this output instead: ``` string(2) "89" ``` https://3v4l.org/KZrMo ### PHP Version PHP 8.4 cffdeb81d5b8b3a0dc72edfc58e1469fb2a3e481 ### Operating System Debian Trixie

« previous php.bugs (#246072) next »