-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dmitry Stogov
committed
Nov 12, 2021
1 parent
b1e6fde
commit 12d02e6
Showing
2 changed files
with
34 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--TEST-- | ||
PRE_INC/DEC numeric string | ||
--INI-- | ||
opcache.enable=1 | ||
opcache.enable_cli=1 | ||
opcache.file_update_protection=0 | ||
opcache.jit_buffer_size=1M | ||
opcache.protect_memory=1 | ||
--FILE-- | ||
<?php | ||
function test($b) { | ||
$a = "0"; | ||
$i = 0; | ||
while (is_numeric($a)) { | ||
$a .= $b; | ||
$a--; | ||
$i .= $a; | ||
$i++; | ||
} | ||
var_dump($a, $i); | ||
} | ||
test("0"); | ||
?> | ||
--EXPECT-- | ||
string(5) "-INF0" | ||
string(170) "0-2-12-112-1112-11112-111112-1111112-11111112-111111112-1111111112-11111111112-111111111112-1111111111112-11111111111112-1.1111111111111E+15-1.1111111111111E+141-ING-INF1" |