blob: 362754e54f622fd17c4e010cabe1ad169ac715ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--TEST--
Bug #78391: Assertion failure in openssl_random_pseudo_bytes
--SKIPIF--
<?php if (!extension_loaded("openssl")) print "skip openssl extension not loaded"; ?>
--FILE--
<?php
$isStrongCrypto = false;
var_dump(strlen(openssl_random_pseudo_bytes(16, $isStrongCrypto)));
var_dump($isStrongCrypto);
?>
--EXPECT--
int(16)
bool(true)
|