File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ var_dump($value);
16
16
===DONE===
17
17
<?php exit (0 ); ?>
18
18
--EXPECTF--
19
- Warning: %s\toPHP(): Reading document did not exhaust input buffer in %s on line %d
19
+ Warning:%sReading document did not exhaust input buffer in %s on line %d%a
20
20
NULL
21
21
===DONE===
Original file line number Diff line number Diff line change @@ -19,13 +19,11 @@ class MyClass implements BSON\Persistable {
19
19
}
20
20
}
21
21
22
- hex_dump (fromPHP (new MyClass ));
22
+ $ bson = fromPHP (new MyClass );
23
+ $ php = toPHP ($ bson , array ('root ' => 'array ' ));
24
+
25
+ var_dump ($ php ['__pclass ' ]->getData ());
23
26
24
27
?>
25
- ===DONE===
26
- <?php exit (0 ); ?>
27
28
--EXPECT--
28
- 0 : 28 00 00 00 05 5f 5f 70 63 6c 61 73 73 00 07 00 [(....__pclass...]
29
- 10 : 00 00 80 4d 79 43 6c 61 73 73 02 66 6f 6f 00 04 [...MyClass.foo..]
30
- 20 : 00 00 00 62 61 72 00 00 [...bar..]
31
- ===DONE===
29
+ string(7) "MyClass"
You can’t perform that action at this time.
0 commit comments