Make truncate to be available at php 5.3 and 5.4