Req #80180 [Opn->Fbk]: class_alias() convert alias in lowercase
| From: | cmb@php.net | Date: | Wed, 14 Jul 2021 14:10:15 +0000 |
| Subject: | Req #80180 [Opn->Fbk]: class_alias() convert alias in lowercase | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-235032@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80180&edit=1
ID: 80180
Updated by: cmb@php.net
Reported by: info at ensostudio dot ru
Summary: class_alias() convert alias in lowercase
-Status: Open
+Status: Feedback
Type: Feature/Change Request
-Package: Unknown/Other Function
+Package: Class/Object related
Operating System: Any
PHP Version: 7.4.11
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
And what's the problem with that, given that class names are
case-insensitive?
Previous Comments:
------------------------------------------------------------------------
[2020-10-03 20:45:05] 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']
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80180&edit=1