php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #80180 class_alias() convert alias in lowercase
Submitted: 2020-10-03 20:45 UTC Modified: -
Votes:2
Avg. Score:2.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: info at ensostudio dot ru Assigned:
Status: Open Package: Unknown/Other Function
PHP Version: 7.4.11 OS: Any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: info at ensostudio dot ru
New email:
PHP Version: OS:

 

 [2020-10-03 20:45 UTC] info at ensostudio dot ru
Description:
------------
Function class_alias() convert alias to lowercase.

Test script:
---------------
<?php
class Foo
{
}
class_alias('Foo', 'Bar');
var_dump(get_declared_classes());
?>

Expected result:
----------------
[..., 'Foo', 'Bar']

Actual result:
--------------
[..., 'Foo', 'bar']

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 30 12:01:23 2020 UTC