|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-10-30 21:30 UTC] p dot vanbrouwershaven at networking4all dot com
Description:
------------
peer_certificate_chain returns "HTTP/1.1 200 OK"
Reproduce code:
---------------
$opts = array(
'ssl' => array(
'capture_peer_cert' => true,
'peer_certificate' => true,
'capture_peer_cert_chain' => true
)
);
$context = stream_context_create($opts);
$fp = fopen($url, 'rb', false, $context);
$meta = stream_get_meta_data($fp);
$options = stream_context_get_options($fp);
fclose($fp);
print_r($options);
Expected result:
----------------
[ssl] => Array
(
[capture_peer_cert] => 1
[peer_certificate] => Resource id #28
[capture_peer_cert_chain] => 1
[peer_certificate_chain] => Resource id #**
)
Actual result:
--------------
[ssl] => Array
(
[capture_peer_cert] => 1
[peer_certificate] => Resource id #28
[capture_peer_cert_chain] => 1
[peer_certificate_chain] => HTTP/1.1 200 OK
)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 28 10:00:01 2025 UTC |
I tried with version php5.2-200807211030 (PHP 5.2.7-dev) but the result is still: "[peer_certificate_chain] => HTTP/1.1 200 OK" [ssl] => Array ( [capture_peer_cert] => 1 [peer_certificate] => Resource id #4 [capture_peer_cert_chain] => 1 [peer_certificate_chain] => HTTP/1.1 200 OK )