xref: /PHP-8.3/ext/opcache/tests/jit/inc_024.phpt (revision d8696f92)
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--EXPECTF--
27Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
28
29Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
30
31Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
32
33Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
34
35Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
36
37Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
38
39Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
40
41Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
42
43Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
44
45Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
46
47Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
48
49Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
50
51Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
52
53Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
54
55Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
56
57Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
58
59Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
60
61Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
62
63Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
64
65Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
66
67Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
68
69Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
70
71Deprecated: Decrement on non-numeric string has no effect and is deprecated in %s on line %d
72
73Deprecated: Increment on non-alphanumeric string is deprecated in %s on line %d
74string(5) "-INF0"
75string(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"
76