[php-src] Issue #8861: SplFileInfo#getBasename() truncates first character

From: Date: Fri, 24 Jun 2022 16:02:07 +0000
Subject: [php-src] Issue #8861: SplFileInfo#getBasename() truncates first character
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241802@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8861 Author: m-vo ### Description The following code: ```php <?php $file = new \SplFileInfo('foo'); var_dump($file->getBasename()); ``` Resulted in this output: ``` string(2) "oo" ``` But I expected this output instead: ``` string(3) "foo" ``` See https://3v4l.org/VmBqd/rfc#vgit.master. ### PHP Version current master ### Operating System _No response_

« previous php.bugs (#241802) next »