Description
The following code:
<?php
$file = new \SplFileInfo('/dir/anotherdir/basedir//');
var_dump($file->getBasename());
https://3v4l.org/vAh4f#v8.1.0
Resulted in this output:
But I expected this output instead:
Before PHP 8.1.1 you got basename even with 2 slashes.
PHP Version
8.1.1
Operating System
No response