Skip to content

Commit ce41e22

Browse files
committed
Merge branch 'master' of github.com:php/php-src
* 'master' of github.com:php/php-src: Use 16 instead of 15 bytes of random data in ReflectionReference->getId (#7148) Fix test wrt. OPENSSL_CONF
2 parents 16d499a + 9a0cc69 commit ce41e22

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ext/openssl/tests/check_default_conf_path.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
66
die('skip windows only test');
77
}
88
?>
9+
--ENV--
10+
OPENSSL_CONF=
911
--FILE--
1012
<?php
1113

ext/reflection/php_reflection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6370,7 +6370,7 @@ ZEND_METHOD(ReflectionReference, getId)
63706370
}
63716371

63726372
if (!REFLECTION_G(key_initialized)) {
6373-
if (php_random_bytes_throw(&REFLECTION_G(key_initialized), 16) == FAILURE) {
6373+
if (php_random_bytes_throw(&REFLECTION_G(key), 16) == FAILURE) {
63746374
RETURN_THROWS();
63756375
}
63766376

0 commit comments

Comments
 (0)