fixed print service when using php 5.4