Bug #81236 [NEW]: Arbitrary loss of last char in rtrim result

From: Date: Thu, 08 Jul 2021 15:03:23 +0000
Subject: Bug #81236 [NEW]: Arbitrary loss of last char in rtrim result
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234920@lists.php.net to get a copy of this message
From: dev at solon dot media Operating system: RHEL PHP version: 7.3.29 Package: Strings related Bug Type: Bug Bug description:Arbitrary loss of last char in rtrim result Description: ------------ rtrim under odd circumstances returns a truncated string. Test script: --------------- <?php $str = "performance-details"; echo rtrim($str,"-details"); ?> Expected result: ---------------- Should return 'performance' Actual result: -------------- Returns 'performanc' - the final e is dropped. -- Edit bug report at https://bugs.php.net/bug.php?id=81236&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=81236&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=81236&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=81236&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=81236&r=needscript Try newer version: https://bugs.php.net/fix.php?id=81236&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=81236&r=support Expected behavior: https://bugs.php.net/fix.php?id=81236&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=81236&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=81236&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=81236&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=81236&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=81236&r=dst IIS Stability: https://bugs.php.net/fix.php?id=81236&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=81236&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=81236&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=81236&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=81236&r=mysqlcfg

« previous php.bugs (#234920) next »