Fix the lazy factory for php 5.3.