xref: /php-src/ext/opcache/tests/jit/inc_024.phpt (revision c16ad918)
1--TEST--
2PRE_INC/DEC numeric string
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.protect_memory=1
8--SKIPIF--
9<?php if (PHP_INT_SIZE != 8) die("skip: 64-bit only"); ?>
10--FILE--
11<?php
12function test($b) {
13    $a = "0";
14    $i = 0;
15    while (is_numeric($a)) {
16        $a .= $b;
17        $a--;
18        $i .= $a;
19        $i++;
20    }
21    var_dump($a, $i);
22}
23test("0");
24?>
25--EXPECTF--
26Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
27
28Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
29
30Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
31
32Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
33
34Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
35
36Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
37
38Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
39
40Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
41
42Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
43
44Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
45
46Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
47
48Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
49
50Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
51
52Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
53
54Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
55
56Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
57
58Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
59
60Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
61
62Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
63
64Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
65
66Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
67
68Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
69
70Deprecated: Decrement on non-numeric string has no effect and is deprecated in %s on line %d
71
72Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
73string(5) "-INF0"
74string(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"
75