use php_sapi_name to detect cli php