Fix for PHP 5.3.*

Signed-off-by: Maarten Troonbeeckx <maarten@troonbeeckx.net>
Merge pull request #14 from shineability/master

Fix for PHP 5.3.*