mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Merge branch 'PHP-7.4'
This commit is contained in:
commit
4276d669d2
@ -7012,7 +7012,7 @@ PHP_FUNCTION(openssl_random_pseudo_bytes)
|
||||
zend_long buffer_length;
|
||||
zval *zstrong_result_returned = NULL;
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|z/", &buffer_length, &zstrong_result_returned) == FAILURE) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|z", &buffer_length, &zstrong_result_returned) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
13
ext/openssl/tests/bug78391.phpt
Normal file
13
ext/openssl/tests/bug78391.phpt
Normal file
@ -0,0 +1,13 @@
|
||||
--TEST--
|
||||
Bug #78391: Assertion failure in openssl_random_pseudo_bytes
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$isStrongCrypto = false;
|
||||
var_dump(strlen(openssl_random_pseudo_bytes(16, $isStrongCrypto)));
|
||||
var_dump($isStrongCrypto);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
int(16)
|
||||
bool(true)
|
Loading…
Reference in New Issue
Block a user