Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Use PHP_SAPI instead of php_sapi_name() #1072

Merged
merged 1 commit into from
May 10, 2017
Merged

Use PHP_SAPI instead of php_sapi_name() #1072

merged 1 commit into from
May 10, 2017

Conversation

javiereguiluz
Copy link
Member

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().

@bocharsky-bw
Copy link
Contributor

👍

@fabpot
Copy link
Member

fabpot commented May 10, 2017

Thank you @javiereguiluz.

@fabpot fabpot merged commit bdcf438 into 2.7 May 10, 2017
fabpot added a commit that referenced this pull request May 10, 2017
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()
@xabbuh xabbuh deleted the use_php_sapi branch May 10, 2017 19:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants