phpids calls fixed, closes #930.