fix to cli for php 5.3