|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesopenssl_pkcs12_read_patch (last revision 2017-03-22 14:45 UTC by Always666 at gmail dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-05-25 19:31 UTC] ab@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: ab
[2017-05-25 19:31 UTC] ab@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 23:00:01 2025 UTC |
Description: ------------ latest Fix "#74022 PHP Fast CGI crashes when reading from a pfx file." broke the export of multiple extracerts. in git source control theres a bad loop in line 2667 for (i=0; i < sk_X509_num(ca); i++) { cause in line 2669 X509* aCA = sk_X509_pop(ca); will return and remove the last element from ca so the loop will only iterate once. The correct code should be the previous: for (i=0;;i++) { cause the theres already checks in place to evaluate if the there is no more certs to process in line 2670: if (!aCA) break; link to git revision for beter understanding. https://github.com/php/php-src/commit/6fc0ae638acd2a66a4181078f4ac5d789762d9de#diff-69bad938d17f4283faa5f7fea17fa627