[php-src] Issue #11432: "rtrim" function returns an empty string if the string contains "v".

From: Date: Mon, 12 Jun 2023 09:26:04 +0000
Subject: [php-src] Issue #11432: "rtrim" function returns an empty string if the string contains "v".
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244663@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11432 Author: longfeiRen ### Description The following code: ```php <?php $str = 'vvv.ab'; echo rtrim($str, '.ab'),PHP_EOL; echo rtrim($str, '.vab'),PHP_EOL; echo rtrim($str, '.avab'),PHP_EOL; ``` Resulted in this output: ``` echo 'vvv' echo '' echo '' ``` But I expected this output instead: ``` echo 'vvvv' ``` ### PHP Version php7.2/php8.1.11 ### Operating System _No response_

« previous php.bugs (#244663) next »