Skip to content

Commit 00eb7d1

Browse files
committed
PHP 8.6: The object IDs of objects changed in tests
1 parent fab315a commit 00eb7d1

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

tests/develop/bug01996-002-ansi-php82.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var_dump($closure);
3333
?>
3434
--EXPECTF--
3535
%sbug01996-002-ansi-php82.php:3:
36-
[1mclass[22m [31mClosure[0m#1 ([32m2[0m) {
36+
[1mclass[22m [31mClosure[0m#%d ([32m2[0m) {
3737
public $function =>
3838
string(6) "substr"
3939
public $parameter =>
@@ -47,7 +47,7 @@ var_dump($closure);
4747
}
4848
}
4949
%sbug01996-002-ansi-php82.php:11:
50-
[1mclass[22m [31mClosure[0m#2 ([32m2[0m) {
50+
[1mclass[22m [31mClosure[0m#%d ([32m2[0m) {
5151
public $function =>
5252
string(12) "user_defined"
5353
public $parameter =>
@@ -59,7 +59,7 @@ var_dump($closure);
5959
}
6060
}
6161
%sbug01996-002-ansi-php82.php:15:
62-
[1mclass[22m [31mClosure[0m#1 ([32m2[0m) {
62+
[1mclass[22m [31mClosure[0m#%d ([32m2[0m) {
6363
public $function =>
6464
string(35) "DateTimeImmutable::createFromFormat"
6565
public $parameter =>
@@ -73,11 +73,11 @@ var_dump($closure);
7373
}
7474
}
7575
%sbug01996-002-ansi-php82.php:20:
76-
[1mclass[22m [31mClosure[0m#3 ([32m3[0m) {
76+
[1mclass[22m [31mClosure[0m#%d ([32m3[0m) {
7777
public $function =>
7878
string(25) "DateTimeImmutable::format"
7979
public $this =>
80-
[1mclass[22m [31mDateTimeImmutable[0m#2 ([32m3[0m) {
80+
[1mclass[22m [31mDateTimeImmutable[0m#%d ([32m3[0m) {
8181
public $date =>
8282
string(26) "2021-07-22 00:00:00.000000"
8383
public $timezone_type =>

tests/develop/bug01996-002-html-php82.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var_dump($closure);
3434
--EXPECTF--
3535
<pre class='xdebug-var-dump' dir='ltr'>
3636
<small>%sbug01996-002-html-php82.php:3:</small>
37-
<b>object</b>(<i>Closure</i>)[<i>1</i>]
37+
<b>object</b>(<i>Closure</i>)[<i>%d</i>]
3838
<i>virtual</i> 'closure' <font color='#cc0000'>'substr'</font>
3939
<i>public</i> 'function' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'substr'</font> <i>(length=6)</i>
4040
<i>public</i> 'parameter' <font color='#888a85'>=&gt;</font>
@@ -44,7 +44,7 @@ var_dump($closure);
4444
'$length' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'&lt;optional&gt;'</font> <i>(length=10)</i>
4545
</pre><pre class='xdebug-var-dump' dir='ltr'>
4646
<small>%sbug01996-002-html-php82.php:11:</small>
47-
<b>object</b>(<i>Closure</i>)[<i>2</i>]
47+
<b>object</b>(<i>Closure</i>)[<i>%d</i>]
4848
<i>virtual</i> 'closure' <font color='#cc0000'>'user_defined'</font>
4949
<i>public</i> 'function' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'user_defined'</font> <i>(length=12)</i>
5050
<i>public</i> 'parameter' <font color='#888a85'>=&gt;</font>
@@ -53,7 +53,7 @@ var_dump($closure);
5353
'$b' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'&lt;required&gt;'</font> <i>(length=10)</i>
5454
</pre><pre class='xdebug-var-dump' dir='ltr'>
5555
<small>%sbug01996-002-html-php82.php:15:</small>
56-
<b>object</b>(<i>Closure</i>)[<i>1</i>]
56+
<b>object</b>(<i>Closure</i>)[<i>%d</i>]
5757
<i>virtual</i> 'closure' <font color='#cc0000'>'DateTimeImmutable::createFromFormat'</font>
5858
<i>public</i> 'function' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'DateTimeImmutable::createFromFormat'</font> <i>(length=35)</i>
5959
<i>public</i> 'parameter' <font color='#888a85'>=&gt;</font>
@@ -63,11 +63,11 @@ var_dump($closure);
6363
'$timezone' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'&lt;optional&gt;'</font> <i>(length=10)</i>
6464
</pre><pre class='xdebug-var-dump' dir='ltr'>
6565
<small>%sbug01996-002-html-php82.php:20:</small>
66-
<b>object</b>(<i>Closure</i>)[<i>3</i>]
66+
<b>object</b>(<i>Closure</i>)[<i>%d</i>]
6767
<i>virtual</i> 'closure' <font color='#cc0000'>'$this->format'</font>
6868
<i>public</i> 'function' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'DateTimeImmutable::format'</font> <i>(length=25)</i>
6969
<i>public</i> 'this' <font color='#888a85'>=&gt;</font>
70-
<b>object</b>(<i>DateTimeImmutable</i>)[<i>2</i>]
70+
<b>object</b>(<i>DateTimeImmutable</i>)[<i>%d</i>]
7171
<i>public</i> 'date' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'2021-07-22 00:00:00.000000'</font> <i>(length=26)</i>
7272
<i>public</i> 'timezone_type' <font color='#888a85'>=&gt;</font> <small>int</small> <font color='#4e9a06'>3</font>
7373
<i>public</i> 'timezone' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'UTC'</font> <i>(length=3)</i>

tests/develop/bug01996-002-text-php82.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var_dump($closure);
3333
?>
3434
--EXPECTF--
3535
%sbug01996-002-text-php82.php:3:
36-
class Closure#1 (2) {
36+
class Closure#%d (2) {
3737
public $function =>
3838
string(6) "substr"
3939
public $parameter =>
@@ -47,7 +47,7 @@ class Closure#1 (2) {
4747
}
4848
}
4949
%sbug01996-002-text-php82.php:11:
50-
class Closure#2 (2) {
50+
class Closure#%d (2) {
5151
public $function =>
5252
string(12) "user_defined"
5353
public $parameter =>
@@ -59,7 +59,7 @@ class Closure#2 (2) {
5959
}
6060
}
6161
%sbug01996-002-text-php82.php:15:
62-
class Closure#1 (2) {
62+
class Closure#%d (2) {
6363
public $function =>
6464
string(35) "DateTimeImmutable::createFromFormat"
6565
public $parameter =>
@@ -73,11 +73,11 @@ class Closure#1 (2) {
7373
}
7474
}
7575
%sbug01996-002-text-php82.php:20:
76-
class Closure#3 (3) {
76+
class Closure#%d (3) {
7777
public $function =>
7878
string(25) "DateTimeImmutable::format"
7979
public $this =>
80-
class DateTimeImmutable#2 (3) {
80+
class DateTimeImmutable#%d (3) {
8181
public $date =>
8282
string(26) "2021-07-22 00:00:00.000000"
8383
public $timezone_type =>

0 commit comments

Comments
 (0)