When I try to run behat from the command line on a dev server, I get the following error:

$ ./vendor/bin/behat
Feature: First
  Playing with features and exploring

  @api
  Scenario: Run cron                                             # features/first.feature:6
PHP Fatal error:  Call to undefined function GuzzleHttp\Handler\curl_reset() in /var/www/html/sites/default/behat-tests/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 78

It appears I have the following version of guzzlehttp installed

  guzzlehttp/guzzle               6.1.0   Guzzle is a PHP HTTP client library
  guzzlehttp/promises             1.0.3   Guzzle promises library
  guzzlehttp/psr7                 1.2.0   PSR-7 message implementation

We run REHL 7 with PHP 5.4

$ php -v
PHP 5.4.16 (cli) (built: Jun 10 2015 04:34:17) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

Comments

rgchi created an issue. See original summary.

rgchi’s picture

Issue summary: View changes
jhedstrom’s picture

Weird, I wonder if Guzzle now requires CURL?

Scott Robertson’s picture

I came across this as well. It does appear that Guzzle uses cURL and this particular issue is because curl_reset was only added in PHP 5.5, so any version older than that will throw the fatal error.