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