Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F633032
query-debug-003.phpt
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
808 B
Referenced Files
None
Subscribers
None
query-debug-003.phpt
View Options
--TEST--
MongoDB\Driver\Query debug output with comment option
--FILE--
<?php
var_dump(new MongoDB\Driver\Query(
[],
['comment' => ['foo' => 1]]
));
var_dump(new MongoDB\Driver\Query(
[],
['modifiers' => ['$comment' => ['foo' => 1]]]
));
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
object(MongoDB\Driver\Query)#%d (%d) {
["filter"]=>
object(stdClass)#%d (0) {
}
["options"]=>
object(stdClass)#%d (%d) {
["comment"]=>
object(stdClass)#%d (%d) {
["foo"]=>
int(1)
}
}
["readConcern"]=>
NULL
}
object(MongoDB\Driver\Query)#%d (%d) {
["filter"]=>
object(stdClass)#%d (0) {
}
["options"]=>
object(stdClass)#%d (%d) {
["comment"]=>
object(stdClass)#%d (%d) {
["foo"]=>
int(1)
}
}
["readConcern"]=>
NULL
}
===DONE===
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 3:54 PM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
152452
Default Alt Text
query-debug-003.phpt (808 B)
Attached To
Mode
R114 php-mongodb
Attached
Detach File
Event Timeline