History log of /php-src/ext/standard/tests/array/array_pad_too_large_padding.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# 6ab50381 14-Jan-2023 Niels <7771979+nielsdos@users.noreply.github.com>

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.
Fu

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.

show more ...