|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-01-31 18:08 UTC] cmb@php.net
[2019-02-09 22:13 UTC] ramsey@php.net
-Status: Open
+Status: Feedback
[2019-02-09 22:13 UTC] ramsey@php.net
[2019-02-13 22:08 UTC] kristianringer at catalyst-au dot net
-Status: Feedback
+Status: Open
[2019-02-13 22:08 UTC] kristianringer at catalyst-au dot net
[2019-03-26 14:22 UTC] mike@php.net
[2019-03-26 17:43 UTC] mike@php.net
-Status: Open
+Status: Not a bug
[2019-03-26 17:43 UTC] mike@php.net
[2019-06-18 07:04 UTC] mike@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 04:00:01 2025 UTC |
Description: ------------ The returned data certinfo object has 'Signiture Algorithm' as part of a string, when it should be returned as its own element in the associative array. Looks like it is incorrectly parsing the returned certificate data. If you run this script and look through the var dump for the returned 'Public Key Algorithm' data, you can see the problem. It happens in php5.6, php7.0, php7.2. Test script: --------------- <?php $curl = curl_init('https://www.google.com'); curl_setopt($curl, CURLOPT_CERTINFO, 1); $ret = curl_exec($curl); $info = curl_getinfo($curl); var_dump($info); Expected result: ---------------- 'Public Key Algorithm' => string(23) "sha256WithRSAEncryption" 'Signature Algorithm' => string(23) "sha256WithRSAEncryption" Actual result: -------------- 'Public Key Algorithm' => string(72) " Signature Algorithm: sha256WithRSAEncryption sha256WithRSAEncryption"