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
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-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 30 12:01:23 2020 UTC