Support for PHP 5.3

* Can't use method return value in write context
* Return as fast as possible