Deprecation: #90800 - GeneralUtility::isRunningOnCgiServerApi

See Issue #90800


The lowlevel API method GeneralUtility::isRunningOnCgiServerApi() which detects if the current PHP is executed via a CGI wrapper script (“SAPI”, see has been moved to the Environment API and is now available via Environment::isRunningOnCgiServer().


Calling the method from GeneralUtility will trigger a PHP deprecation message.

Affected Installations

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


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