Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
rgchi CreditAttribution: rgchi commentedComment #3
jhedstromWeird, I wonder if Guzzle now requires CURL?
Comment #4
Scott Robertson CreditAttribution: Scott Robertson commentedI 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.