mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix zend_register_internal_class_ex alias generation (#8091)
This wouldn't work for creating aliases in a namespace. It would create the class alias "MyNS_ClassName" instead of "MyNS\\ClassName"
This commit is contained in:
parent
7add0da996
commit
0fab520ded
1 changed files with 1 additions and 1 deletions
|
@ -1748,7 +1748,7 @@ class ClassInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->alias) {
|
if ($this->alias) {
|
||||||
$code .= "\tzend_register_class_alias(\"" . str_replace("\\", "_", $this->alias) . "\", class_entry);\n";
|
$code .= "\tzend_register_class_alias(\"" . str_replace("\\", "\\\\", $this->alias) . "\", class_entry);\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->enumCaseInfos as $enumCase) {
|
foreach ($this->enumCaseInfos as $enumCase) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue