Title: Incorrect PHP Version Error?
Last modified: August 22, 2016

---

# Incorrect PHP Version Error?

 *  Resolved [user2037](https://wordpress.org/support/users/user2037/)
 * (@user2037)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/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: [http://php.net/manual/en/function.phpversion.php](http://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)

 *  [Leljak](https://wordpress.org/support/users/leljak/)
 * (@leljak)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/incorrect-php-version-error/#post-5643187)
 * Hello,
 * this will be fixed in the update which I’ll try to push soon.
 * PHP requires 5.2.1
 * Kind regards
 *  [Leljak](https://wordpress.org/support/users/leljak/)
 * (@leljak)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/incorrect-php-version-error/#post-5643237)
 * New version is out V 1.1.0 where PHP check is 5.2.1 now.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Incorrect PHP Version Error?’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-braintree-payment-gateway/assets/icon-128x128.
   png?rev=3363013)
 * [Payment Gateway Braintree WooCommerce](https://wordpress.org/plugins/woocommerce-braintree-payment-gateway/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-braintree-payment-gateway/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-braintree-payment-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-braintree-payment-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-braintree-payment-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-braintree-payment-gateway/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Leljak](https://wordpress.org/support/users/leljak/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/incorrect-php-version-error/#post-5643237)
 * Status: resolved