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:3
Avg. Score:3.0 ± 0.8
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:3 (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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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-2021 The PHP Group
All rights reserved.
Last updated: Sun May 16 10:01:24 2021 UTC