Fixing display bug if instanciating via code a class from a PHP extension or inner class