Fixed bug #65291 - get_defined_constants() crash with __CLASS__ in trait

https://bugs.php.net/bug.php?id=65291