[connector:php] refactoring about #937