Passing NULL to argument 3 of mysql_fetch_object has undefined behavior ...

Passing NULL to argument 3 of mysql_fetch_object has undefined behavior and is not functionally equal to not passing a 3rd argument.  This seems to effect php 5.3 but not php 5.5.  A bug report was never created.  This resolves issues like %S does not have a constructor hence you cannot use ctor_params.