I think it's nicer if the variable declaration about and the error message here use a constant for the default wire version - they can go into wire_version.h under #define PHP_MONGODB_API_MAX_WIRE_VERSION 2. This is also a comment for the same construct below: