Skip to content

Commit cd8bf0b

Browse files
committed
Relax error check
The precise error is version-dependent, just check that there is some kind of error reported.
1 parent 13313d9 commit cd8bf0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/openssl/tests/bug80747.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ $conf = array(
1515
'private_key_bits' => 511,
1616
);
1717
var_dump(openssl_pkey_new($conf));
18-
echo openssl_error_string(), "\n";
18+
var_dump(openssl_error_string() !== false);
1919

2020
?>
21-
--EXPECTF--
21+
--EXPECT--
2222
bool(false)
23-
error:%s:key size too small
23+
bool(true)

0 commit comments

Comments
 (0)