I was having problem in Windows 7 with PHP 5.4.0 in command line, using Xampp 1.8.1 server. This is what i did:
- Rename
php.ini-productiontophp.ini(in C:\xampp\php\ folder) - Edit
php.iniand uncommentextension_dir=ext. - Also uncomment
extension=php_openssl.dll.
After that it worked fine.