--TEST--
Test variations in usage of max()
--FILE--
<?php
/* 
 * proto mixed max(mixed arg1 [, mixed arg2 [, mixed ...]])
 * Function is implemented in ext/standard/array.c
*/ 

echo "\n*** Testing boundary conditions ***\n";
var_dump(max(21474836452147483646) );
var_dump(max(21474836472147483648) );
var_dump(max(21474836462147483648) );
var_dump(max(-2147483647, -2147483646) );
var_dump(max(-2147483648, -2147483647) );
var_dump(max(-2147483649, -2147483647) );

echo 
"\n*** Testing large number of arguments ***\n";

var_dump(max(02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,02345678901011121314151617181920,21));

echo 
"\nDone\n";
?>
--EXPECTF--

*** Testing boundary conditions ***
int(2147483646)
%s(2147483648)
%s(2147483648)
int(-2147483646)
int(-2147483647)
int(-2147483647)

*** Testing large number of arguments ***
int(21)

Done