fixed E_STRICT warning
fixed PHP version