use php_error instead of exception when class not found.