xref: /PHP-8.2/ext/opcache/tests/jit/inc_024.phpt (revision 64fde170)
1--TEST--
2PRE_INC/DEC numeric string
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.protect_memory=1
9--SKIPIF--
10<?php if (PHP_INT_SIZE != 8) die("skip: 64-bit only"); ?>
11--FILE--
12<?php
13function test($b) {
14    $a = "0";
15    $i = 0;
16    while (is_numeric($a)) {
17        $a .= $b;
18        $a--;
19        $i .= $a;
20        $i++;
21    }
22    var_dump($a, $i);
23}
24test("0");
25?>
26--EXPECT--
27string(5) "-INF0"
28string(260) "0-2-12-112-1112-11112-111112-1111112-11111112-111111112-1111111112-11111111112-111111111112-1111111111112-11111111111112-111111111111112-1111111111111112-11111111111111112-111111111111111112-1111111111111111112-1.1111111111111E+20-1.1111111111111E+191-ING-INF1"
29