mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Update remaining octal 32-bit tests
This commit is contained in:
parent
6f67d5ad6e
commit
5c88d11243
@ -10,9 +10,9 @@ precision=14
|
||||
$doubles = array(
|
||||
076545676543223,
|
||||
032325463734,
|
||||
077777797777777,
|
||||
07777777777777977777777777,
|
||||
03333333333333382222222222222,
|
||||
0777777,
|
||||
07777777777777,
|
||||
033333333333333,
|
||||
);
|
||||
|
||||
foreach ($doubles as $d) {
|
||||
|
@ -43,7 +43,7 @@ $valid_ints = array(
|
||||
0x7fffffff, // max positive integer as hexadecimal
|
||||
0x7FFFFFFF, // max positive integer as hexadecimal
|
||||
0123, // integer as octal
|
||||
01912, // should be quivalent to octal 1
|
||||
01, // should be quivalent to octal 1
|
||||
-020000000000, // max negative integer as octal
|
||||
017777777777 // max positive integer as octal
|
||||
);
|
||||
|
@ -43,7 +43,7 @@ $valid_ints = array(
|
||||
0x7fffffff, // max positive integer as hexadecimal
|
||||
0x7FFFFFFF, // max positive integer as hexadecimal
|
||||
0123, // integer as octal
|
||||
01912, // should be quivalent to octal 1
|
||||
01, // should be quivalent to octal 1
|
||||
-020000000000, // max negative integer as octal
|
||||
017777777777 // max positive integer as octal
|
||||
);
|
||||
|
@ -44,7 +44,7 @@ $integer_values = array (
|
||||
0x7fffffff, // max positive integer as hexadecimal
|
||||
0x7FFFFFFF, // max positive integer as hexadecimal
|
||||
0123, // integer as octal
|
||||
01912, // should be quivalent to octal 1
|
||||
01, // should be quivalent to octal 1
|
||||
-020000000000, // max negative integer as octal
|
||||
017777777777 // max positive integer as octal
|
||||
);
|
||||
|
@ -28,7 +28,7 @@ $valid_ints = array(
|
||||
'0x7fffffff', // max positive integer as hexadecimal
|
||||
0x7FFFFFFF, // max positive integer as hexadecimal
|
||||
'0123', // integer as octal
|
||||
01912, // should be quivalent to octal 1
|
||||
01, // should be quivalent to octal 1
|
||||
-020000000000, // max negative integer as octal
|
||||
017777777777, // max positive integer as octal
|
||||
);
|
||||
|
@ -28,7 +28,7 @@ $valid_ints = array(
|
||||
0x7fffffff, // max positive integer as hexadecimal
|
||||
0x7FFFFFFF, // max positive integer as hexadecimal
|
||||
0123, // integer as octal
|
||||
01912, // should be quivalent to octal 1
|
||||
01, // should be quivalent to octal 1
|
||||
-020000000000, // max negative integer as octal
|
||||
017777777777, // max positive integer as octal
|
||||
);
|
||||
|
@ -22,7 +22,7 @@ $format2 = "%o %o";
|
||||
$format3 = "%o %o %o";
|
||||
$arg1 = 021;
|
||||
$arg2 = -0347;
|
||||
$arg3 = 05678;
|
||||
$arg3 = 0567;
|
||||
|
||||
echo "\n-- Calling printf() with no arguments --\n";
|
||||
$result = printf($format);
|
||||
|
Loading…
Reference in New Issue
Block a user