[libvirt] [libvirt-php] Bug(?) in getting domain resource from sub-function