php-src icon indicating copy to clipboard operation
php-src copied to clipboard

`basename()` not working properly in 8.0.14

Open foremtehan opened this issue 4 years ago • 0 comments

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

foremtehan avatar Jan 30 '22 07:01 foremtehan