Skip to content

Commit 58168b4

Browse files
committed
Fixed tests (new opcache will optimize serias echo IS_CONST into one)
1 parent 3178242 commit 58168b4

4 files changed

Lines changed: 46 additions & 46 deletions

File tree

sapi/phpdbg/tests/breakpoints_001.phpt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ q
1111
[Successful compilation of %s]
1212
prompt> [Breakpoint #0 added at %s:3]
1313
prompt> [Breakpoint #0 at %s:3, hits: 1]
14-
>00003: echo 1;
15-
00004: echo 2;
16-
00005: echo 3;
14+
>00003: echo $i++;
15+
00004: echo $i++;
16+
00005: echo $i++;
1717
prompt> [Breakpoint #1 added at %s:4]
1818
prompt> 1
1919
[Breakpoint #1 at %s:4, hits: 1]
20-
>00004: echo 2;
21-
00005: echo 3;
22-
00006: echo 4;
20+
>00004: echo $i++;
21+
00005: echo $i++;
22+
00006: echo $i++;
2323
prompt> 234
2424
[Script ended normally]
2525
prompt>
2626
--FILE--
2727
<?php
28-
29-
echo 1;
30-
echo 2;
31-
echo 3;
32-
echo 4;
28+
$i = 1;
29+
echo $i++;
30+
echo $i++;
31+
echo $i++;
32+
echo $i++;
3333

sapi/phpdbg/tests/breakpoints_002.phpt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,27 @@ q
1414
prompt> [Breakpoint #0 added at %s:4]
1515
prompt> 1
1616
[Breakpoint #0 at %s:4, hits: 1]
17-
>00004: echo 2;
18-
00005: echo 3;
19-
00006: echo 4;
17+
>00004: echo $i++;
18+
00005: echo $i++;
19+
00006: echo $i++;
2020
prompt> [Breakpoint #1 added at %s:3]
2121
prompt> Do you really want to restart execution? (type y or n): [Breakpoint #1 at %s:3, hits: 1]
22-
>00003: echo 1;
23-
00004: echo 2;
24-
00005: echo 3;
22+
>00003: echo $i++;
23+
00004: echo $i++;
24+
00005: echo $i++;
2525
prompt> 1
2626
[Breakpoint #0 at %s:4, hits: 1]
27-
>00004: echo 2;
28-
00005: echo 3;
29-
00006: echo 4;
27+
>00004: echo $i++;
28+
00005: echo $i++;
29+
00006: echo $i++;
3030
prompt> 234
3131
[Script ended normally]
3232
prompt>
3333
--FILE--
3434
<?php
35-
36-
echo 1;
37-
echo 2;
38-
echo 3;
39-
echo 4;
35+
$i = 1;
36+
echo $i++;
37+
echo $i++;
38+
echo $i++;
39+
echo $i++;
4040

sapi/phpdbg/tests/breakpoints_003.phpt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ prompt> [Deleted breakpoint #0]
1616
prompt> [Breakpoint #1 added at %s:5]
1717
prompt> 12
1818
[Breakpoint #1 at %s:5, hits: 1]
19-
>00005: echo 3;
20-
00006: echo 4;
19+
>00005: echo $i++;
20+
00006: echo $i++;
2121
00007:
2222
prompt> [Deleted breakpoint #1]
2323
prompt> Do you really want to restart execution? (type y or n): 1234
2424
[Script ended normally]
2525
prompt>
2626
--FILE--
2727
<?php
28-
29-
echo 1;
30-
echo 2;
31-
echo 3;
32-
echo 4;
28+
$i = 1;
29+
echo $i++;
30+
echo $i++;
31+
echo $i++;
32+
echo $i++;
3333

sapi/phpdbg/tests/breakpoints_004.phpt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,30 @@ q
1212
[Successful compilation of %s]
1313
prompt> [Breakpoint #0 added at ZEND_ECHO]
1414
prompt> [Breakpoint #0 in ZEND_ECHO at %s:3, hits: 1]
15-
>00003: echo 1;
16-
00004: echo 2;
17-
00005: echo 3;
15+
>00003: echo $i++;
16+
00004: echo $i++;
17+
00005: echo $i++;
1818
prompt> 1
1919
[Breakpoint #0 in ZEND_ECHO at %s:4, hits: 2]
20-
>00004: echo 2;
21-
00005: echo 3;
22-
00006: echo 4;
20+
>00004: echo $i++;
21+
00005: echo $i++;
22+
00006: echo $i++;
2323
prompt> 2
2424
[Breakpoint #0 in ZEND_ECHO at %s:5, hits: 3]
25-
>00005: echo 3;
26-
00006: echo 4;
25+
>00005: echo $i++;
26+
00006: echo $i++;
2727
00007:
2828
prompt> 3
2929
[Breakpoint #0 in ZEND_ECHO at %s:6, hits: 4]
30-
>00006: echo 4;
30+
>00006: echo $i++;
3131
00007:
3232
prompt> 4
3333
[Script ended normally]
3434
prompt>
3535
--FILE--
3636
<?php
37-
38-
echo 1;
39-
echo 2;
40-
echo 3;
41-
echo 4;
37+
$i = 1;
38+
echo $i++;
39+
echo $i++;
40+
echo $i++;
41+
echo $i++;

0 commit comments

Comments
 (0)