Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F630340
query-debug-001.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
878 B
Referenced Files
None
Subscribers
None
query-debug-001.phpt
View Options
--TEST--
MongoDB\Driver\Query debug output
--FILE--
<?php
var_dump(new MongoDB\Driver\Query(
['a' => 123],
[
'limit' => 5,
'projection' => ['c' => 1],
'readConcern' => new MongoDB\Driver\ReadConcern(MongoDB\Driver\ReadConcern::LOCAL),
'skip' => 10,
'sort' => ['b' => -1],
]
));
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
object(MongoDB\Driver\Query)#%d (%d) {
["filter"]=>
object(stdClass)#%d (%d) {
["a"]=>
int(123)
}
["options"]=>
object(stdClass)#%d (%d) {
["limit"]=>
int(5)
["projection"]=>
object(stdClass)#%d (%d) {
["c"]=>
int(1)
}
["skip"]=>
int(10)
["sort"]=>
object(stdClass)#%d (%d) {
["b"]=>
int(-1)
}
}
["readConcern"]=>
object(MongoDB\Driver\ReadConcern)#%d (%d) {
["level"]=>
string(5) "local"
}
}
===DONE===
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 9:15 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
141520
Default Alt Text
query-debug-001.phpt (878 B)
Attached To
Mode
R114 php-mongodb
Attached
Detach File
Event Timeline