[php] avoid None params (fixes #31)