Fixed issues affecting PHP 5.3
Merge branch 'master' of github.com:chung-leong/qb