[libvirt] [libvirt-php PATCH 3/7] update code to use resource handling macros