We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51ea4a6 commit 22c9e7eCopy full SHA for 22c9e7e
NEWS
@@ -12,6 +12,9 @@ PHP NEWS
12
- Opcache:
13
. Fixed build for macOS to cater with pkg-config settings. (David Carlier)
14
15
+- OpenSSL:
16
+ . Add missing error checks on file writing functions. (nielsdos)
17
+
18
- Phar:
19
. Fixed bug GH-10766 (PharData archive created with Phar::Zip format does
20
not keep files metadata (datetime)). (nielsdos)
ext/openssl/openssl.c
@@ -5406,7 +5406,11 @@ PHP_FUNCTION(openssl_pkcs7_verify)
5406
}
5407
5408
if (p7bout) {
5409
- PEM_write_bio_PKCS7(p7bout, p7);
+ if (PEM_write_bio_PKCS7(p7bout, p7) == 0) {
5410
+ php_error_docref(NULL, E_WARNING, "Failed to write PKCS7 to file");
5411
+ php_openssl_store_errors();
5412
+ RETVAL_FALSE;
5413
+ }
5414
5415
5416
} else {
0 commit comments