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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
24 + 11 = ?
Subscribe to this entry?

 
 [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

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: Fri Apr 26 12:01:30 2024 UTC