--TEST-- Test str_pad() function : usage variations - large values for '$pad_length' argument --SKIPIF-- --FILE-- getMessage() . "\n"; } $php_int_max_pad_length = PHP_INT_MAX; var_dump( str_pad($input, $php_int_max_pad_length) ); ?> --EXPECTF-- *** Testing str_pad() function: with large value for for 'pad_length' argument *** str_pad(): Argument #2 ($length) must be of type int, float given Fatal error: Allowed memory size of %d bytes exhausted%s(tried to allocate %d bytes) in %s on line %d