steverobbins/magescan

(assumed) PHP 5.5.9 incompatibility

Closed this issue · 2 comments

Hi Steve, thanks for making this.

Using default PHP shipped with Ubuntu LTS 14.04:

$ mga scan myshop.nl
PHP Notice:  Use of undefined constant CURLOPT_NOBODY - assumed 'CURLOPT_NOBODY' in phar:///home/willem/Dropbox/desktop/files/bin/mga/src/MGA/Command/ScanCommand.php on line 281
PHP Fatal error:  Call to undefined function MGA\curl_init() in phar:///home/willem/Dropbox/desktop/files/bin/mga/src/MGA/Request.php on line 28
$ php -v
PHP 5.5.9-1ubuntu4.9 (cli) (built: Apr 17 2015 11:44:57) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

Works fine on PHP 5.4.26

It sounds like your 5.5.9 installation doesn't have the curl extension installed.

Oops! 😳 This is not one of my better bug reports ;) Thanks for looking into it, though!