[rcpub] More PHP warning fixes.