Support for PHP 5.3

* Can't use method return value in write context
* Return as fast as possible
Merge pull request #1 from kimegede/patch-1

Support for PHP 5.3