I'm facing a strange problem with PHP CLI.
PHP runs perfectly fine when accessing files through the web browser. I can run CURL scripts, connect to databases and perform any kind of connection available on PHP, either locally or to external addresses.
But if I run the same script on CLI, I always get the following error:
Warning Error: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Host desconocido. in ...
This is a global problem, and it's not related to my scripts, because if I run, for example, the installation for composer, I get the same error while trying to install.
I tried reinstalling WAMP, going back to the default PHP.ini and enabling IPv6. I compared the ini values on CLI and on normal mode (through ini_get_all()) and there were no differences, besides the normal ones.
I'm running WAMP latest version, on Windows 8 x64.