Closed skolodyazhnyy closed 9 years ago
Thanks! Will merge shortly.
Another PR solves this issue in a more elegant way, by specifying curl-extension as dependency for this library on composer .
This PR can be closed and merge only https://github.com/onesky/api-library-php5/pull/12
Hey,
It's much safer to throw Exception only if API is called. In current implementation, if you have autoloader load
Client.php
file, you will get an exception even if CURL is not needed (file included, but API is not used). It could be quite dangerous.