File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ $iterator = new IteratorIterator($cursor);
26
26
$ iterator ->rewind ();
27
27
$ iterator ->next ();
28
28
29
- printf ("Cursor ID is zero: %s \n" , ( int ) $ cursor ->getId (true ) = == 0 ? 'yes ' : 'no ' );
29
+ printf ("Cursor ID is zero: %s \n" , $ cursor ->getId (true ) == 0 ? 'yes ' : 'no ' );
30
30
var_dump ($ cursor );
31
31
32
32
$ iterator ->next ();
@@ -35,7 +35,7 @@ $iterator->next();
35
35
* is exhausted. While this is primarily done to ensure implicit sessions for
36
36
* command cursors are returned to the pool ASAP, it also applies to explicit
37
37
* sessions. */
38
- printf ("\nCursor ID is zero: %s \n" , ( int ) $ cursor ->getId (true ) = == 0 ? 'yes ' : 'no ' );
38
+ printf ("\nCursor ID is zero: %s \n" , $ cursor ->getId (true ) == 0 ? 'yes ' : 'no ' );
39
39
var_dump ($ cursor );
40
40
41
41
?>
Original file line number Diff line number Diff line change @@ -28,12 +28,12 @@ $iterator->next();
28
28
/* Implicit sessions for query cursors are never exposed to PHPC, as they are
29
29
* handled internally by libmongoc. Cursor debug ouput should never report such
30
30
* sessions. */
31
- printf ("Cursor ID is zero: %s \n" , ( int ) $ cursor ->getId (true ) = == 0 ? 'yes ' : 'no ' );
31
+ printf ("Cursor ID is zero: %s \n" , $ cursor ->getId (true ) == 0 ? 'yes ' : 'no ' );
32
32
var_dump ($ cursor );
33
33
34
34
$ iterator ->next ();
35
35
36
- printf ("\nCursor ID is zero: %s \n" , ( int ) $ cursor ->getId (true ) = == 0 ? 'yes ' : 'no ' );
36
+ printf ("\nCursor ID is zero: %s \n" , $ cursor ->getId (true ) == 0 ? 'yes ' : 'no ' );
37
37
var_dump ($ cursor );
38
38
39
39
?>
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ $iterator = new IteratorIterator($cursor);
30
30
$ iterator ->rewind ();
31
31
$ iterator ->next ();
32
32
33
- printf ("Cursor ID is zero: %s \n" , ( int ) $ cursor ->getId (true ) = == 0 ? 'yes ' : 'no ' );
33
+ printf ("Cursor ID is zero: %s \n" , $ cursor ->getId (true ) == 0 ? 'yes ' : 'no ' );
34
34
var_dump ($ cursor );
35
35
36
36
$ iterator ->next ();
@@ -39,7 +39,7 @@ $iterator->next();
39
39
* is exhausted. While this is primarily done to ensure implicit sessions for
40
40
* command cursors are returned to the pool ASAP, it also applies to explicit
41
41
* sessions. */
42
- printf ("\nCursor ID is zero: %s \n" , ( int ) $ cursor ->getId (true ) = == 0 ? 'yes ' : 'no ' );
42
+ printf ("\nCursor ID is zero: %s \n" , $ cursor ->getId (true ) == 0 ? 'yes ' : 'no ' );
43
43
var_dump ($ cursor );
44
44
45
45
?>
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ $iterator = new IteratorIterator($cursor);
29
29
$ iterator ->rewind ();
30
30
$ iterator ->next ();
31
31
32
- printf ("Cursor ID is zero: %s \n" , ( int ) $ cursor ->getId (true ) = == 0 ? 'yes ' : 'no ' );
32
+ printf ("Cursor ID is zero: %s \n" , $ cursor ->getId (true ) == 0 ? 'yes ' : 'no ' );
33
33
var_dump ($ cursor );
34
34
35
35
$ iterator ->next ();
@@ -38,7 +38,7 @@ $iterator->next();
38
38
* libmongoc, PHPC-1152 emulates its own implicit sessions for command cursors
39
39
* in order to ensure that command cursors always share the same session as the
40
40
* originating command. */
41
- printf ("\nCursor ID is zero: %s \n" , ( int ) $ cursor ->getId (true ) = == 0 ? 'yes ' : 'no ' );
41
+ printf ("\nCursor ID is zero: %s \n" , $ cursor ->getId (true ) == 0 ? 'yes ' : 'no ' );
42
42
var_dump ($ cursor );
43
43
44
44
?>
You can’t perform that action at this time.
0 commit comments