[web-php] PR #600: `phpversion()` replacements and code branch collapsing for older PHP versions
| From: | Ayesh | Date: | Fri, 01 Jul 2022 21:20:43 +0000 |
| Subject: | [web-php] PR #600: `phpversion()` replacements and code branch collapsing for older PHP versions | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-30218@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/web-php/pull/600
Author: Ayesh
- Removes a
if branch was PHP < 5, which should be safe now that we no longer
support PHP 4.
- Replaces phpversion() function call with PHP_VERSION constant, both of
which yield identical results, but the use of the constant is a micro-optimization.