---
title: "Deprecation: #90800 - GeneralUtility::isRunningOnCgiServerApi"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-90800"
source: "Changelog/10.4/Deprecation-90800-GeneralUtilityisRunningOnCgiServerApi.rst"
modified: "2026-09-14T09:47:36+00:00"
---

# Deprecation: #90800 - GeneralUtility::isRunningOnCgiServerApi

See [forge#90800](https://forge.typo3.org/issues/90800)

## Description

The lowlevel API method `GeneralUtility::isRunningOnCgiServerApi()` which detects if
the current PHP is executed via a CGI wrapper script ("SAPI", see [https://www.php.net/manual/en/function.php-sapi-name.php](https://www.php.net/manual/en/function.php-sapi-name.php)) has been
moved to the Environment API and is now available via `Environment::isRunningOnCgiServer()`.

## Impact

Calling the method from `GeneralUtility` will trigger a PHP `E_USER_DEPRECATED` error.

## Affected Installations

Any TYPO3 installation with an extension using this PHP method, which will happen only in rare circumstances.

## Migration

Use the new method `Environment::isRunningOnCgiServer()` instead, which works exactly the same.
