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: 2021-07-25 04:22 UTC
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: cmb (profile)
Status: No Feedback Package: Class/Object related
PHP Version: 7.4.11 OS: Any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-07-14 14:10 UTC] cmb@php.net
-Status: Open +Status: Feedback -Package: Unknown/Other Function +Package: Class/Object related -Assigned To: +Assigned To: cmb
 [2021-07-14 14:10 UTC] cmb@php.net
And what's the problem with that, given that class names are
case-insensitive?
 [2021-07-25 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC