Skip to content

Commit eee0def

Browse files
committed
I have no idea why, but this is apparently not valid syntax in php
1 parent a995a88 commit eee0def

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

src/MongoDB/CursorType.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
<?php
22
namespace MongoDB\CursorType;
33

4-
const NON_TAILABLE = 0 << 0;
5-
const TAILABLE = \MongoDB\QueryFlags\TAILABLE_CURSOR;
6-
const TAILABLE_AWAIT = \MongoDB\QueryFlags\TAILABLE_CURSOR | \MongoDB\QueryFlags\AWAIT_DATA;
4+
const NON_TAILABLE = 0x00;
5+
6+
//const TAILABLE = \MongoDB\QueryFlags\TAILABLE_CURSOR;
7+
const TAILABLE = 0x02;
8+
9+
//const TAILABLE_AWAIT = \MongoDB\QueryFlags\TAILABLE_CURSOR | \MongoDB\QueryFlags\AWAIT_DATA;
10+
const TAILABLE_AWAIT = 0x22;
711

812

src/MongoDB/QueryFlags.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22
namespace MongoDB\QueryFlags;
33

4-
const TAILABLE_CURSOR = 1 << 1;
5-
const SLAVE_OKAY = 1 << 2;
6-
const OPLOG_REPLY = 1 << 3;
7-
const NO_CURSOR_TIMEOUT = 1 << 4;
8-
const AWAIT_DATA = 1 << 5;
9-
const EXHAUST = 1 << 6;
10-
const PARTIAL = 1 << 7;
4+
const TAILABLE_CURSOR = 0x02;
5+
const SLAVE_OKAY = 0x04;
6+
const OPLOG_REPLY = 0x08;
7+
const NO_CURSOR_TIMEOUT = 0x10;
8+
const AWAIT_DATA = 0x20;
9+
const EXHAUST = 0x40;
10+
const PARTIAL = 0x80;
1111

1212

0 commit comments

Comments
 (0)