[mail] fixed duplicate check
[php] fixed arch pid