Remove .phpt files and remove a redundant clear()

Per ptarjan's comments on PR 1986.