Thanks Michal, Should there be a link to the flags definition on this page? https://libvirt.org/php/api-reference.html

On Thu, Mar 23, 2023 at 2:36 PM Michal Prívozník <mprivozn@redhat.com> wrote:
On 3/23/23 10:35, Simon Fairweather wrote:
> Hi 
>
> Are the flags documented? can this function be used to  specify  same
> as virsh undefine --nvram "name of VM"
>
> libvirt_domain_undefine_flags($res, $flags)
>
> [Since version (null)]
>
> Function is used to undefine(with flags) the domain identified by it's
> resource.
>
> /@res [resource]/:    libvirt domain resource, e.g. from
> libvirt_domain_lookup_by_*()
> /@flags [int]/:       optional flags
> /Returns/:    : TRUE for success, FALSE on error
>
>
>

Hey, thanks for the report. I've created a MR that fixes these problems
here:

https://gitlab.com/libvirt/libvirt-php/-/merge_requests/38

Michal