We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb80f35 commit 02fcd99Copy full SHA for 02fcd99
1 file changed
ext/openssl/openssl.c
@@ -1872,8 +1872,7 @@ PHP_FUNCTION(openssl_x509_export)
1872
}
1873
if (!notext && !X509_print(bio_out, cert)) {
1874
php_openssl_store_errors();
1875
- }
1876
- if (PEM_write_bio_X509(bio_out, cert)) {
+ } else if (PEM_write_bio_X509(bio_out, cert)) {
1877
BUF_MEM *bio_buf;
1878
1879
BIO_get_mem_ptr(bio_out, &bio_buf);
0 commit comments