note 118214 added to migration56.openssl

From: Date: Tue, 27 Oct 2015 09:36:35 +0000
Subject: note 118214 added to migration56.openssl
Groups: php.notes 
Request: Send a blank email to php-notes+get-204038@lists.php.net to get a copy of this message
To get back to the "old behavior" with self-signed ("snakeoil") certificates to possibly incorrect name, you need to set both options. <?php $streamContext = stream_context_create([ 'ssl' => [ 'verify_peer' => false, 'verify_peer_name' => false ] ]); $contents = file_get_contents('https://url', false, $streamContext); ?> ---- Server IP: 72.52.91.14 Probable Submitter: 109.61.74.220 ---- Manual Page -- http://php.net/manual/en/migration56.openssl.php Edit -- https://master.php.net/note/edit/118214 Del: integrated -- https://master.php.net/note/delete/118214/integrated Del: useless -- https://master.php.net/note/delete/118214/useless Del: bad code -- https://master.php.net/note/delete/118214/bad+code Del: spam -- https://master.php.net/note/delete/118214/spam Del: non-english -- https://master.php.net/note/delete/118214/non-english Del: in docs -- https://master.php.net/note/delete/118214/in+docs Del: other reasons-- https://master.php.net/note/delete/118214 Reject -- https://master.php.net/note/reject/118214 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#204038) next »