update class_alias condition for PHP_VERSION_ID < 50304