Add PHP 5.3 to the build on travis ci.
Fix the lazy factory for php 5.3.