summaryrefslogtreecommitdiff
path: root/ext/openssl/tests/openssl_random_pseudo_bytes_error.phpt
blob: ee3f1d032cd48162a7de46c69fc1bea7694a3aff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Test error operation of openssl_random_pseudo_bytes()
--SKIPIF--
<?php if (!extension_loaded("openssl")) print "skip"; ?>
--FILE--
<?php
try {
    openssl_random_pseudo_bytes(0);
} catch (Error $e) {
    echo $e->getMessage().PHP_EOL;
}
?>
--EXPECT--
Length must be greater than 0