php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43151 [peer_certificate_chain] => HTTP/1.1 200 OK
Submitted: 2007-10-30 21:30 UTC Modified: 2011-11-16 12:55 UTC
Votes:5
Avg. Score:3.2 ± 1.5
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:3 (100.0%)
From: p dot vanbrouwershaven at networking4all dot com Assigned: felipe (profile)
Status: Closed Package: OpenSSL related
PHP Version: 5.2CVS-2008-07-21 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: p dot vanbrouwershaven at networking4all dot com
New email:
PHP Version: OS:

 

 [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
 )

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-21 12:41 UTC] p dot vanbrouwershaven at networking4all dot com
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
 )
 [2011-11-16 12:55 UTC] felipe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: felipe
 [2011-11-16 12:55 UTC] felipe@php.net
This issue seems already fixed in the source.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Sep 16 17:00:01 2025 UTC