This reads weird. Please keep var decls together without new lines, but defintely have space between var decls and code (which is what PHP_MONGO_GET_COLLECTION(getThis()); really is).