The <writable> selector selects only files that are writable.
<writable>
<fileset dir="${src}" includes="**/*.php"> <writable> </fileset>