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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC