Iterating through a PHP MongoCursor object with a large number of objects causes this code to execute, which has the extraneous output "writing more".
The last line below needs to be removed or commented out
>> From bson.c of version 1.0.5
int php_mongo_write_get_more(buffer *buf, mongo_cursor *cursor TSRMLS_DC)
int start = buf->pos - buf->start;