1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00

Relax error check

The precise error is version-dependent, just check that there
is some kind of error reported.
This commit is contained in:
Nikita Popov
2021-08-05 11:50:11 +02:00
parent 13313d9b1b
commit cd8bf0b6bd
+3 -3
View File
@@ -15,9 +15,9 @@ $conf = array(
'private_key_bits' => 511,
);
var_dump(openssl_pkey_new($conf));
echo openssl_error_string(), "\n";
var_dump(openssl_error_string() !== false);
?>
--EXPECTF--
--EXPECT--
bool(false)
error:%s:key size too small
bool(true)