Skip to content

Commit 2a80758

Browse files
committed
Fix occasionaly failing test
1 parent 28cf425 commit 2a80758

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/openssl/tests/openssl_pkey_new_basic.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ $details = openssl_pkey_get_details($dh);
8686
$dh_details = $details['dh'];
8787
openssl_pkey_test_cmp($phex, $dh_details['p']);
8888
var_dump($dh_details['g']);
89-
var_dump(strlen($dh_details['pub_key']));
90-
var_dump(strlen($dh_details['priv_key']));
89+
var_dump(strlen($dh_details['pub_key']) > 0);
90+
var_dump(strlen($dh_details['priv_key']) > 0);
9191
?>
9292
--EXPECT--
9393
int(0)
@@ -102,5 +102,5 @@ int(20)
102102
int(128)
103103
int(0)
104104
string(1) "2"
105-
int(128)
106-
int(128)
105+
bool(true)
106+
bool(true)

0 commit comments

Comments
 (0)