[php-src] Issue #11977: bug or feature?
| From: | ValenokPC | Date: | Tue, 15 Aug 2023 04:42:10 +0000 |
| Subject: | [php-src] Issue #11977: bug or feature? | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-245187@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/11977
Author: ValenokPC
### Description
The following code:
```php
echo rtrim('/var/www/domain.local/folder', '/folder/');
<?php
```
Resulted in this output:
```
/var/www/domain.loca
```
But I expected this output instead:
```
Is that how it should be?

```
### PHP Version
8.1.22, 8.0.30, 7.4.33
### Operating System
_No response_