1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 00:32:23 +01:00

1 Commits

Author SHA1 Message Date
Niels
6ab503814d Make array_pad's $length warning less confusing (#10149)
Remove array_pad's arbitrary length restriction

The error message was wrong; it *is* possible to use a larger length.
Furthermore, there is an arbitrary restriction on the new array's
length.

Fix both by checking the length against HT_MAX_SIZE.
2023-01-14 12:15:56 +01:00