Incorrect PHP Version Error?
-
When running on a test host with PHP 5.2.9 I see the following error: “Braintree Error: Braintree requires PHP 5.2.1 and above. You are using version 5.2.9.”
Could it be a problem with the version check? The “phpversion” article on php.net has some ideas for emulating the PHP_VERSION_ID for simple comparisons: https://php.net/manual/en/function.phpversion.php
EDIT: Working through the source I see that 5.3+ is expected. Just out of curiosity, what portion(s) requires 5.3?
FWIW, I also recommend putting that minimum version string into a class constant and using “PHP_VERSION” instead of “phpversion()”.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Incorrect PHP Version Error?’ is closed to new replies.