📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-02 01:00:40
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php85-pecl-mongodb_2.3.1-1.el8
/
tests
📍 /opt/alt/tests/alt-php85-pecl-mongodb_2.3.1-1.el8/tests
🔄 Refresh
✏️
Editing: query-ctor-005.phpt
Read Only
--TEST-- MongoDB\Driver\Query construction with negative limit --FILE-- <?php /* The server expects a non-negative limit, but neither PHPC nor libmongoc * performs any validation. The option is passed as-is. */ var_dump(new MongoDB\Driver\Query( ['x' => 1], ['limit' => -5] )); ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- object(MongoDB\Driver\Query)#%d (%d) { ["filter"]=> object(stdClass)#%d (%d) { ["x"]=> int(1) } ["options"]=> object(stdClass)#%d (%d) { ["limit"]=> int(-5) } ["readConcern"]=> NULL } ===DONE===
💾 Save Changes
❌ Cancel