file_get_contents
file_get_contents copied to clipboard
SANs not supported PHP < 5.6
Github has a certificate that matches multiple domains. PHP versions less than 5.6 will not be able to handle this properly with a stream context. The only solution for this is to use CURL since curl supports this out of the box.
Maybe this should be added?
I encountered this problem when writing a self-update command using the phar-updater.
@waltertamboer It should be. It won't be perfect since not all systems will have curl, but it's better than doing nothing! My time is freeing up here a bit....finally. I'll try to get to it at the weekend. The better solution is for PHP 5.3, 5.4 and 5.5 to waddle off into the sunset. Not likely to happen soon, I admit!