Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 9 additions & 9 deletions Zend/tests/029.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,34 @@ var_dump($arr);
--EXPECT--
array(1) {
[0]=>
object(stdClass)#1 (1) {
object(DynamicObject)#1 (1) {
["a"]=>
object(stdClass)#2 (0) {
object(DynamicObject)#2 (0) {
}
}
}
array(1) {
[0]=>
object(stdClass)#1 (2) {
object(DynamicObject)#1 (2) {
["a"]=>
object(stdClass)#2 (0) {
object(DynamicObject)#2 (0) {
}
["b"]=>
object(stdClass)#3 (0) {
object(DynamicObject)#3 (0) {
}
}
}
array(1) {
[0]=>
object(stdClass)#1 (3) {
object(DynamicObject)#1 (3) {
["a"]=>
object(stdClass)#2 (0) {
object(DynamicObject)#2 (0) {
}
["b"]=>
object(stdClass)#3 (0) {
object(DynamicObject)#3 (0) {
}
["c"]=>
object(stdClass)#2 (0) {
object(DynamicObject)#2 (0) {
}
}
}
4 changes: 2 additions & 2 deletions Zend/tests/add_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ var_dump($c);
echo "Done\n";
?>
--EXPECTF--
Exception: Unsupported operand types: array + stdClass
Exception: Unsupported operand types: array + DynamicObject

Fatal error: Uncaught TypeError: Unsupported operand types: array + stdClass in %s:%d
Fatal error: Uncaught TypeError: Unsupported operand types: array + DynamicObject in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
4 changes: 2 additions & 2 deletions Zend/tests/add_003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ var_dump($c);
echo "Done\n";
?>
--EXPECTF--
Exception: Unsupported operand types: stdClass + array
Exception: Unsupported operand types: DynamicObject + array

Fatal error: Uncaught TypeError: Unsupported operand types: stdClass + array in %s:%d
Fatal error: Uncaught TypeError: Unsupported operand types: DynamicObject + array in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/anon/016.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var_dump($c->foo());
--EXPECT--
array(1) {
[0]=>
object(stdClass)#2 (0) {
object(DynamicObject)#2 (0) {
}
}
array(1) {
Expand Down
4 changes: 2 additions & 2 deletions Zend/tests/assign_coalesce_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ array(2) {
}

Objects:
object(stdClass)#1 (2) {
object(DynamicObject)#1 (2) {
["foo"]=>
int(123)
["bar"]=>
Expand All @@ -110,7 +110,7 @@ object(stdClass)#1 (2) {
id(foo)
id(foo)
id(bar)
object(stdClass)#2 (2) {
object(DynamicObject)#2 (2) {
["foo"]=>
int(123)
["bar"]=>
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/assign_obj_ref_byval_function.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var_dump($obj);
?>
--EXPECTF--
Notice: Only variables should be assigned by reference in %s on line %d
object(stdClass)#1 (1) {
object(DynamicObject)#1 (1) {
["prop"]=>
NULL
}
2 changes: 1 addition & 1 deletion Zend/tests/assign_obj_ref_return.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var_dump($obj);

?>
--EXPECT--
object(stdClass)#1 (2) {
object(DynamicObject)#1 (2) {
["ref"]=>
&int(42)
["val"]=>
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug29015.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $a->{"\0"} = 42;
var_dump($a);
?>
--EXPECTF--
object(stdClass)#1 (1) {
object(DynamicObject)#1 (1) {
[""]=>
string(10) "string('')"
}
Expand Down
4 changes: 2 additions & 2 deletions Zend/tests/bug30080.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class foo {

new foo(array(new stdClass));
?>
--EXPECTF--
--EXPECT--
array(1) {
[0]=>
object(stdClass)#%d (0) {
object(DynamicObject)#2 (0) {
}
}
4 changes: 2 additions & 2 deletions Zend/tests/bug35163_3.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ var_dump($a);
$a->b = null;
$a = null;
?>
--EXPECTF--
object(stdClass)#%d (1) {
--EXPECT--
object(DynamicObject)#1 (1) {
["b"]=>
&array(3) {
[0]=>
Expand Down
6 changes: 3 additions & 3 deletions Zend/tests/bug35239.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ var_dump($a);
$a->x0->y1 = "ok\n";
echo $a->x0;
?>
--EXPECTF--
object(stdClass)#%d (1) {
--EXPECT--
object(DynamicObject)#1 (1) {
["x0"]=>
&object(stdClass)#%d (3) {
&object(DynamicObject)#2 (3) {
["y0"]=>
string(1) "b"
["y1"]=>
Expand Down
4 changes: 2 additions & 2 deletions Zend/tests/bug37811.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ try {
object(TestClass)#1 (0) {
}
string(3) "Foo"
object(stdClass)#2 (0) {
object(DynamicObject)#2 (0) {
}
Object of class stdClass could not be converted to string
Object of class DynamicObject could not be converted to string
4 changes: 2 additions & 2 deletions Zend/tests/bug43332_1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ $foo->bar($foo); // Ok!
$foo->bar(new \stdclass); // Error, ok!
?>
--EXPECTF--
Fatal error: Uncaught TypeError: foobar\foo::bar(): Argument #1 ($a) must be of type foobar\foo, stdClass given, called in %s:%d
Fatal error: Uncaught TypeError: foobar\foo::bar(): Argument #1 ($a) must be of type foobar\foo, DynamicObject given, called in %s:%d
Stack trace:
#0 %s(%d): foobar\foo->bar(Object(stdClass))
#0 %s(%d): foobar\foo->bar(Object(DynamicObject))
#1 {main}
thrown in %sbug43332_1.php on line 5
2 changes: 1 addition & 1 deletion Zend/tests/bug52614.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ array(0) {
}
Attempt to assign property "a" on null
NULL
object(stdClass)#3 (1) {
object(DynamicObject)#3 (1) {
["a"]=>
int(1)
}
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug68118.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var_dump($a);

?>
--EXPECT--
object(stdClass)#2 (1) {
object(DynamicObject)#2 (1) {
["undefined"]=>
string(4) "test"
}
4 changes: 2 additions & 2 deletions Zend/tests/bug69446.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ var_dump($bar);
--EXPECT--
object(bad)#2 (2) {
["x"]=>
object(stdClass)#3 (0) {
object(DynamicObject)#3 (0) {
}
["y"]=>
object(stdClass)#4 (0) {
object(DynamicObject)#4 (0) {
}
}
2 changes: 1 addition & 1 deletion Zend/tests/bug70121.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ unserialize('O:12:"DateInterval":1:{s:4:"days";O:9:"Exception":7:{s:10:"'."\0".'
?>
OK
--EXPECTF--
Fatal error: Uncaught TypeError: Cannot assign stdClass to property Exception::$previous of type ?Throwable in %s:%d
Fatal error: Uncaught TypeError: Cannot assign DynamicObject to property Exception::$previous of type ?Throwable in %s:%d
Stack trace:
#0 %s(%d): unserialize('O:12:"DateInter...')
#1 {main}
Expand Down
4 changes: 2 additions & 2 deletions Zend/tests/bug70288.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ function test(&$obj) {
$a = new A;
test($a->dummy);
?>
--EXPECTF--
object(stdClass)#%d (0) {
--EXPECT--
object(DynamicObject)#2 (0) {
}
2 changes: 1 addition & 1 deletion Zend/tests/bug70332.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test($arg)->name[1] = "xxxx";
print_r($arg);
?>
--EXPECT--
stdClass Object
DynamicObject Object
(
[name] => Array
(
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug71067.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $o->test();
print_r($o->test());
?>
--EXPECT--
stdClass Object
DynamicObject Object
(
[children] => Array
(
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug71539_1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $x->h = 42;
var_dump($x);
?>
--EXPECT--
object(stdClass)#1 (9) {
object(DynamicObject)#1 (9) {
["a"]=>
int(1)
["b"]=>
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug72162.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ try {
}
?>
--EXPECT--
error_reporting(): Argument #1 ($error_level) must be of type ?int, stdClass given
error_reporting(): Argument #1 ($error_level) must be of type ?int, DynamicObject given
2 changes: 1 addition & 1 deletion Zend/tests/bug73900.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ var_dump($c);

?>
--EXPECT--
object(stdClass)#1 (0) {
object(DynamicObject)#1 (0) {
}
2 changes: 1 addition & 1 deletion Zend/tests/bug78379.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var_dump(new C);
--EXPECTF--
object(C)#%d (1) {
["p"]=>
object(stdClass)#%d (1) {
object(DynamicObject)#2 (1) {
["x"]=>
array(1) {
[0]=>
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug78644.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var_dump($a);

?>
--EXPECT--
object(stdClass)#1 (1) {
object(DynamicObject)#1 (1) {
["b"]=>
NULL
}
2 changes: 1 addition & 1 deletion Zend/tests/bug78999.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var_dump(get());
var_dump(gc_collect_cycles());
?>
--EXPECT--
object(stdClass)#1 (1) {
object(DynamicObject)#1 (1) {
["prop"]=>
*RECURSION*
}
Expand Down
4 changes: 2 additions & 2 deletions Zend/tests/bug79155.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ var_dump($t->a, $t->b, $t->c, $t->d);
--EXPECT--
string(3) "str"
string(3) "str"
object(stdClass)#2 (0) {
object(DynamicObject)#2 (0) {
}
object(stdClass)#3 (0) {
object(DynamicObject)#3 (0) {
}
NULL
NULL
Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/bug79818.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ test(new stdClass);
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant "UNDEFINED" in %s:%d
Stack trace:
#0 %s(%d): test(Object(stdClass))
#0 %s(%d): test(Object(DynamicObject))
#1 {main}
thrown in %s on line %d
2 changes: 1 addition & 1 deletion Zend/tests/bug80072.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ $a[]=&$a == $a=&$b > gc_collect_cycles();

?>
--EXPECT--
Unsupported operand types: stdClass % int
Unsupported operand types: DynamicObject % int
2 changes: 1 addition & 1 deletion Zend/tests/bug80194.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ var_dump(test($x));

?>
--EXPECT--
object(stdClass)#2 (0) {
object(DynamicObject)#2 (0) {
}
4 changes: 2 additions & 2 deletions Zend/tests/bug81159.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ try {
}
?>
--EXPECT--
Cannot access offset of type stdClass on string
Cannot access offset of type stdClass on string
Cannot access offset of type DynamicObject on string
Cannot access offset of type DynamicObject on string
24 changes: 12 additions & 12 deletions Zend/tests/cast_to_object.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -37,51 +37,51 @@ foreach ($vars as $var) {
echo "Done\n";
?>
--EXPECTF--
object(stdClass)#%d (1) {
object(DynamicObject)#2 (1) {
["scalar"]=>
string(6) "string"
}
object(stdClass)#%d (1) {
object(DynamicObject)#3 (1) {
["scalar"]=>
string(7) "8754456"
}
object(stdClass)#%d (1) {
object(DynamicObject)#2 (1) {
["scalar"]=>
string(0) ""
}
object(stdClass)#%d (1) {
object(DynamicObject)#3 (1) {
["scalar"]=>
string(1) "%0"
}
object(stdClass)#%d (1) {
object(DynamicObject)#2 (1) {
["scalar"]=>
int(9876545)
}
object(stdClass)#%d (1) {
object(DynamicObject)#3 (1) {
["scalar"]=>
float(0.1)
}
object(stdClass)#%d (0) {
object(DynamicObject)#2 (0) {
}
object(stdClass)#%d (3) {
object(DynamicObject)#3 (3) {
["0"]=>
int(1)
["1"]=>
int(2)
["2"]=>
int(3)
}
object(stdClass)#%d (1) {
object(DynamicObject)#2 (1) {
["scalar"]=>
bool(false)
}
object(stdClass)#%d (1) {
object(DynamicObject)#3 (1) {
["scalar"]=>
bool(true)
}
object(stdClass)#%d (0) {
object(DynamicObject)#2 (0) {
}
object(stdClass)#%d (1) {
object(DynamicObject)#3 (1) {
["scalar"]=>
resource(%d) of type (stream)
}
Expand Down
Loading