uawdijnntqw1x1x1
IP : 3.17.174.204
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
..
/
.
/
.
/
opt
/
alt
/
tests
/
alt-php82-pecl-mongodb_1.18.1-1.el8
/
tests
/
bson-document-fromPHP-002.phpt
/
/
--TEST-- MongoDB\BSON\Document::fromPHP(): Encodes non-Serializable objects as a document --FILE-- <?php require_once __DIR__ . '/../utils/basic.inc'; class MyDocument { private $foo = 1; protected $bar = 2; public $baz = 3; } $bson = MongoDB\BSON\Document::fromPHP(new MyDocument); echo $bson->toRelaxedExtendedJSON(), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- { "baz" : 3 } ===DONE===
/home/../././opt/alt/tests/alt-php82-pecl-mongodb_1.18.1-1.el8/tests/bson-document-fromPHP-002.phpt