forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This also fixes ext/standard/tests/general_functions/var_export-locale.phpt to actually run the floating-point section.
- Loading branch information
1 parent
8f9af36
commit 8d217db
Showing
7 changed files
with
200 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
ext/standard/tests/general_functions/var_export_bug66179.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--TEST-- | ||
Bug #66179 (var_export() exports float as integer) | ||
--FILE-- | ||
<?php | ||
|
||
var_export(1.0); | ||
echo PHP_EOL; | ||
var_export(123.0); | ||
echo PHP_EOL; | ||
var_export(-1.0); | ||
echo PHP_EOL; | ||
var_export(-123.0); | ||
echo PHP_EOL; | ||
var_export(0.0); | ||
echo PHP_EOL; | ||
var_export(-0.0); | ||
echo PHP_EOL; | ||
var_export(10000000000000000.0); | ||
echo PHP_EOL; | ||
|
||
?> | ||
--EXPECTF-- | ||
1.0 | ||
123.0 | ||
-1.0 | ||
-123.0 | ||
0.0 | ||
-0.0 | ||
10000000000000000.0 |
Oops, something went wrong.