ignore idea's files
* ereg is deprecated since PHP 5.3
* socket should be closed before return (unreachable code)
Merge pull request #11 from sunchaserinfo/upstream

deprecation warning fix & unreachable code fix