Fixing issues with PHP5.5 incompatibility

Signed-off-by: Pratheek Rebala <pratheekrebala@live.com>