file_get_contents icon indicating copy to clipboard operation
file_get_contents copied to clipboard

SANs not supported PHP < 5.6

Open waltertamboer opened this issue 9 years ago • 1 comments

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 avatar Dec 21 '15 19:12 waltertamboer

@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!

padraic avatar Jan 07 '16 19:01 padraic