fix: php >= 5.3 warnings

Signed-off-by: Stephen L. <lrq3000@gmail.com>