zend-patterns / ZendServerSDK

Pure ZF2 CLI for zpk creation and webapi client.
BSD 3-Clause "New" or "Revised" License
22 stars 17 forks source link

cygwin, phar missing Zend\Http\Client\Adapter\ctype_xdigit() #64

Closed lucyllewy closed 9 years ago

lucyllewy commented 9 years ago

PHP version:

PHP 5.6.8 (cli) (built: Apr 16 2015 17:31:50)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies

zs-client's reported versions:

ZendServerWebApi Client version 1.2
Zend Server Client v1.0

error exists both when using the .phar as an executable and after extracting with the phar utility followed by calling index.php.

Arguments which precipitated the error are:

zs-client addTarget --target="ZendLive" --zskey="zs-client"  --zssecret="removed" --zsurl="http://zendserver.local:10081/"

Error output:

PHP Fatal error:  Call to undefined function Zend\Http\Client\Adapter\ctype_xdigit() in /home/dllewellyn/bin/zs-client.unpacked/vendor/zendframework/zend-http/Zend/Http/Client/Adapter/Socket.php on line 2

Fatal error: Call to undefined function Zend\Http\Client\Adapter\ctype_xdigit() in /home/dllewellyn/bin/zs-client.unpacked/vendor/zendframework/zend-http/Zend/Http/Client/Adapter/Socket.php on line 2
lucyllewy commented 9 years ago

this is a bad installation of php - the ctype functions are supplied by a separate cygwin package - php is split into many individual components in cygwin it seems, so I needed to install php-ctype from the cygwin setup utility.