1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/openssl/tests/bug78391.phpt
Fabien Villepinte 7aece45f4d Add missing SKIPIF (openssl)
Co-Authored-By: Gabriel Caruso <carusogabriel34@gmail.com>
2019-09-04 08:43:32 +02:00

16 lines
337 B
PHP

--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)