Issue Bug Closed

#42058Set class alias also if new class names are required in class loader

Helmut Hummel 10/16/12, 22:26 updated 10/02/18, 12:16

Description

As not all usage of class names trigger the autoloader, usage of old class names in type hints for example.
If an object with a namespaced class is given to a method with an old class name, PHP dies with a fatal error.
To ensure full compatibility we need to set the class alias also when a namespaced class is required in the autoloader.

Reviews 1