Skip to content

Commit 6c29261

Browse files
committed
ext/openssl: Remove bool type coercions in tests
1 parent e541e6b commit 6c29261

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/openssl/tests/bug38261.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ openssl key from zval leaks
44
openssl
55
--FILE--
66
<?php
7-
$cert = false;
87
class test {
98
function __toString() {
109
return "test object";
@@ -26,6 +25,7 @@ try {
2625
echo $e->getMessage(), "\n";
2726
}
2827

28+
$cert = '';
2929
var_dump(openssl_x509_parse($cert));
3030

3131
try {

ext/openssl/tests/bug61124.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Bug #61124: Segmentation fault with openssl_decrypt
44
openssl
55
--FILE--
66
<?php
7-
var_dump(openssl_decrypt('kzo w2RMExUTYQXW2Xzxmg==', 'aes-128-cbc', 'pass', false, 'pass'));
7+
var_dump(openssl_decrypt('kzo w2RMExUTYQXW2Xzxmg==', 'aes-128-cbc', 'pass', 0, 'pass'));
88
?>
99
--EXPECTF--
1010
Warning: openssl_decrypt(): IV passed is only 4 bytes long, cipher expects an IV of precisely 16 bytes, padding with \0 in %s on line %d

0 commit comments

Comments
 (0)