php-src
php-src copied to clipboard
`basename()` not working properly in 8.0.14
Description
The following code:
<?php
namespace Application\Path;
class Test{
}
echo basename(Test::class);
Resulted in this output:
Application\Path\Test
But I expected this output instead:
Test
In my local env which has php version 8.0.0 the basename function works properly but in my production: php 8.0.14 with swoole and laravel it not working correctly
PHP Version
PHP 8.0.14
Operating System
Ubuntu 20.04 heroku