diff options
Diffstat (limited to 'tests/lang/bug24640.phpt')
-rwxr-xr-x | tests/lang/bug24640.phpt | 129 |
1 files changed, 0 insertions, 129 deletions
diff --git a/tests/lang/bug24640.phpt b/tests/lang/bug24640.phpt deleted file mode 100755 index eb208cf56a..0000000000 --- a/tests/lang/bug24640.phpt +++ /dev/null @@ -1,129 +0,0 @@ ---TEST-- -Bug #24640 (var_export and var_dump can't output large float) ---INI-- -precision=12 ---FILE-- -<?php -function test($v) -{ - echo var_export($v, true) . "\n"; - var_dump($v); - echo "$v\n"; - print_r($v); - echo "\n------\n"; -} - -test(1.7e+300); -test(1.7e-300); -test(1.7e+79); -test(1.7e-79); -test(1.7e+80); -test(1.7e-80); -test(1.7e+81); -test(1.7e-81); -test(1.7e+319); -test(1.7e-319); -test(1.7e+320); -test(1.7e-320); -test(1.7e+321); -test(1.7e-321); -test(1.7e+324); -test(1.7e-324); -test(1.7e+1000); -test(1.7e-1000); - -?> -===DONE=== -<?php exit(0); ?> ---EXPECT-- -1.7E+300 -float(1.7E+300) -1.7E+300 -1.7E+300 ------- -1.7E-300 -float(1.7E-300) -1.7E-300 -1.7E-300 ------- -1.7E+79 -float(1.7E+79) -1.7E+79 -1.7E+79 ------- -1.7E-79 -float(1.7E-79) -1.7E-79 -1.7E-79 ------- -1.7E+80 -float(1.7E+80) -1.7E+80 -1.7E+80 ------- -1.7E-80 -float(1.7E-80) -1.7E-80 -1.7E-80 ------- -1.7E+81 -float(1.7E+81) -1.7E+81 -1.7E+81 ------- -1.7E-81 -float(1.7E-81) -1.7E-81 -1.7E-81 ------- -INF -float(INF) -INF -INF ------- -1.69998107421E-319 -float(1.69998107421E-319) -1.69998107421E-319 -1.69998107421E-319 ------- -INF -float(INF) -INF -INF ------- -1.70007988734E-320 -float(1.70007988734E-320) -1.70007988734E-320 -1.70007988734E-320 ------- -INF -float(INF) -INF -INF ------- -1.69958582169E-321 -float(1.69958582169E-321) -1.69958582169E-321 -1.69958582169E-321 ------- -INF -float(INF) -INF -INF ------- -0 -float(0) -0 -0 ------- -INF -float(INF) -INF -INF ------- -0 -float(0) -0 -0 ------- -===DONE=== |