mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
14 lines
291 B
PHP
14 lines
291 B
PHP
--TEST--
|
|
Test error operation of openssl_random_pseudo_bytes()
|
|
--EXTENSIONS--
|
|
openssl
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
openssl_random_pseudo_bytes(0);
|
|
} catch (Error $e) {
|
|
echo $e->getMessage().PHP_EOL;
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
openssl_random_pseudo_bytes(): Argument #1 ($length) must be greater than 0
|