Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F630021
query-debug-002.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
659 B
Referenced Files
None
Subscribers
None
query-debug-002.phpt
View Options
--TEST--
MongoDB\Driver\Query debug output with let option
--FILE--
<?php
var_dump(new MongoDB\Driver\Query(
['$expr' => ['$eq' => ['$_id', '$$id']]],
['let' => ['id' => 1]]
));
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
object(MongoDB\Driver\Query)#%d (%d) {
["filter"]=>
object(stdClass)#%d (%d) {
["$expr"]=>
object(stdClass)#%d (%d) {
["$eq"]=>
array(2) {
[0]=>
string(4) "$_id"
[1]=>
string(4) "$$id"
}
}
}
["options"]=>
object(stdClass)#%d (%d) {
["let"]=>
object(stdClass)#%d (%d) {
["id"]=>
int(1)
}
}
["readConcern"]=>
NULL
}
===DONE===
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 8:27 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
141278
Default Alt Text
query-debug-002.phpt (659 B)
Attached To
Mode
R114 php-mongodb
Attached
Detach File
Event Timeline