stream_truncate()

Is now Pure-PHP