Skip to content

Commit 5d62cfb

Browse files
committed
Tweak openssl_random_pseudo_bytes() upper bound error message
As suggested by @guilliamxavier.
1 parent 8cf9c2f commit 5d62cfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/openssl/openssl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -7647,7 +7647,7 @@ PHP_OPENSSL_API zend_string* php_openssl_random_pseudo_bytes(zend_long buffer_le
76477647
return NULL;
76487648
}
76497649
if (ZEND_LONG_INT_OVFL(buffer_length)) {
7650-
zend_argument_value_error(1, "must be less than 2147483648");
7650+
zend_argument_value_error(1, "must be less than or equal to %d", INT_MAX);
76517651
return NULL;
76527652
}
76537653
buffer = zend_string_alloc(buffer_length, 0);

0 commit comments

Comments
 (0)