Skip to content

Commit d3349d6

Browse files
[%pS migration] Use %pS in ext/standard/var.c
1 parent b6637ad commit d3349d6

23 files changed

Lines changed: 57 additions & 57 deletions

‎Zend/tests/anon/012.phpt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Ensure correct unmangling of private property names for anonymous class instance
44
<?php
55
var_dump(new class { private $foo; });
66
?>
7-
--EXPECT--
8-
object(class@anonymous)#1 (1) {
7+
--EXPECTF--
8+
object(class@anonymous%0%s)#1 (1) {
99
["foo":"class@anonymous":private]=>
1010
NULL
1111
}

‎Zend/tests/anon/013.phpt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ $foo = function() {
1010
$closure = Closure::bind($foo, $class, $class);
1111
var_dump($closure());
1212
?>
13-
--EXPECT--
14-
object(class@anonymous)#1 (0) {
13+
--EXPECTF--
14+
object(class@anonymous%0%s)#1 (0) {
1515
}

‎Zend/tests/bug72598.phpt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ new class {
1818
?>
1919
--EXPECTF--
2020
Warning: ref(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
21-
object(class@anonymous)#1 (0) {
21+
object(class@anonymous%0%s)#1 (0) {
2222
}
2323

2424
Warning: ref(): Argument #1 ($ref) must be passed by reference, value given in %s on line %d
25-
object(class@anonymous)#1 (0) {
25+
object(class@anonymous%0%s)#1 (0) {
2626
}

‎Zend/tests/bug73816.phpt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ var_dump(anon());
1313
var_dump(anon());
1414

1515
?>
16-
--EXPECT--
17-
object(class@anonymous)#1 (1) {
16+
--EXPECTF--
17+
object(class@anonymous%0%s)#1 (1) {
1818
["prop1":"class@anonymous":private]=>
1919
NULL
2020
}
21-
object(class@anonymous)#1 (1) {
21+
object(class@anonymous%0%s)#1 (1) {
2222
["prop2":"class@anonymous":private]=>
2323
NULL
2424
}

‎Zend/tests/constexpr/new_anon_class.phpt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ static $x = new class {};
88
var_dump($x);
99

1010
?>
11-
--EXPECT--
12-
object(class@anonymous)#1 (0) {
11+
--EXPECTF--
12+
object(class@anonymous%0%s)#1 (0) {
1313
}

‎Zend/tests/partial_application/static_pfa_004.phpt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ Closure [ <user> function {closure:pfa:%s:13} ] {
3939

4040
Error: Using $this when not in object context
4141
# Re-bound PFA
42-
object(class@anonymous)#3 (0) {
42+
object(class@anonymous%0%s)#3 (0) {
4343
}
4444
bool(true)

‎Zend/tests/property_hooks/oss_fuzz_403308724.phpt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ $y = $test->y;
1919
var_dump($y);
2020
var_dump($y[0]->inner);
2121
?>
22-
--EXPECT--
22+
--EXPECTF--
2323
array(2) {
2424
[0]=>
25-
object(class@anonymous)#2 (0) {
25+
object(class@anonymous%0%s)#2 (0) {
2626
}
2727
[1]=>
2828
int(1)

‎Zend/tests/type_declarations/typed_properties_001.phpt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var_dump(new class(1, 2.2, true, ["four"], new stdClass) {
2121
});
2222
?>
2323
--EXPECTF--
24-
object(class@anonymous)#%d (6) {
24+
object(class@anonymous%0%s)#%d (6) {
2525
["int"]=>
2626
int(1)
2727
["float"]=>

‎Zend/tests/type_declarations/typed_properties_033.phpt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var_dump($foo);
2626
?>
2727
--EXPECTF--
2828
TypeError: Cannot assign float to reference held by property class@anonymous::$qux of type int
29-
object(class@anonymous)#1 (4) {
29+
object(class@anonymous%0%s)#1 (4) {
3030
["foo"]=>
3131
int(2)
3232
["bar"]=>

‎Zend/tests/type_declarations/typed_properties_034.phpt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ try {
3636

3737
var_dump($foo);
3838
?>
39-
--EXPECT--
39+
--EXPECTF--
4040
int(42)
4141
TypeError: Cannot assign null to property class@anonymous::$baz of type int
4242
int(1)
4343
int(10)
4444
int(10)
4545
TypeError: Cannot assign null to reference held by property class@anonymous::$baz of type int
46-
object(class@anonymous)#1 (2) {
46+
object(class@anonymous%0%s)#1 (2) {
4747
["bar"]=>
4848
&int(10)
4949
["baz"]=>

0 commit comments

Comments
 (0)