Req #80180 [Fbk->NoF]: class_alias() convert alias in lowercase
Edit report at https://bugs.php.net/bug.php?id=80180&edit=1
ID: 80180
Updated by: php-bugs@lists.php.net
Reported by: info at ensostudio dot ru
Summary: class_alias() convert alias in lowercase
-Status: Feedback
+Status: No Feedback
Type: Feature/Change Request
Package: Class/Object related
Operating System: Any
PHP Version: 7.4.11
Assigned To: cmb
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2021-07-14 14:10:15] cmb@php.net
And what's the problem with that, given that class names are
case-insensitive?
------------------------------------------------------------------------
[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
Thread (3 messages)