minor #1072 Use PHP_SAPI instead of php_sapi_name() (javiereguiluz)
minor #1072 Use PHP_SAPI instead of php_sapi_name() (javiereguiluz)

This PR was merged into the 2.7 branch.

Discussion
----------

Use PHP_SAPI instead of php_sapi_name()

In Symfony code we only use PHP_SAPI and https://secure.php.net/manual/en/function.php-sapi-name.php says:

> Note:
> The PHP constant PHP_SAPI has the same value as php_sapi_name().

Commits
-------

bdcf438 Use PHP_SAPI instead of php_sapi_name()

kmelia/fresh-symfony,kmelia/fresh-symfony,symfony/symfony-standard,kmelia/fresh-symfony,stof/symfony-standard,simonjcarr/symfony_rest,symfony/symfony-standard,simonjcarr/symfony_rest,debruyne0/symfony,debruyne0/symfony,stof/symfony-standard,Tobion/symfony-standard,Tobion/symfony-standard