From:             p dot vanbrouwershaven at networking4all dot com
Operating system: Linux **** 2.6.8-2-686 #1 Tue Au
PHP version:      5.2.4
PHP Bug Type:     OpenSSL related
Bug description:  [peer_certificate_chain] => HTTP/1.1 200 OK

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
 )

-- 
Edit bug report at http://bugs.php.net/?id=43151&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43151&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43151&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43151&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43151&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43151&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43151&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43151&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43151&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43151&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43151&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43151&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43151&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43151&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43151&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43151&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43151&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43151&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43151&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43151&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43151&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43151&r=mysqlcfg

Reply via email to