Re: [libvirt] [libvirt-php] libvirt_list_active_domains returns garbage querying a Hyper-V host

2016-09-07 Thread Fernando Casas Schössow
The patch is working Michal. :) Thanks. Fer On mié, sep 7, 2016 at 6:16 , Fernando Casas Schössow wrote: Thanks Michal. :) I'm patching and re-building as we speak. Will report the results in a few minutes. On mié, sep 7, 2016 at 6:01 , Michal Privoznik

Re: [libvirt] [libvirt-php] libvirt_list_active_domains returns garbage querying a Hyper-V host

2016-09-07 Thread Fernando Casas Schössow
Thanks Michal. :) I'm patching and re-building as we speak. Will report the results in a few minutes. On mié, sep 7, 2016 at 6:01 , Michal Privoznik wrote: On 07.09.2016 15:58, Matthias Bolte wrote: 2016-09-07 14:20 GMT+02:00 Fernando Casas Schössow

Re: [libvirt] [libvirt-php] libvirt_list_active_domains returns garbage querying a Hyper-V host

2016-09-07 Thread Michal Privoznik
On 07.09.2016 15:58, Matthias Bolte wrote: > 2016-09-07 14:20 GMT+02:00 Fernando Casas Schössow > : >> Hi all, >> >> I'm using libvirt-php to manage a Hyper-V 2012 R2 host. >> When trying to retrieve the active VMs using the function >> libvirt_list_active_domains() I

Re: [libvirt] [libvirt-php] libvirt_list_active_domains returns garbage querying a Hyper-V host

2016-09-07 Thread Fernando Casas Schössow
Thanks for the tip Matthias. I found some time to check the code and came up with this patch: diff --git a/src/libvirt-php.c b/src/libvirt-php.c index 2045c59..8e215f4 100644 --- a/src/libvirt-php.c +++ b/src/libvirt-php.c @@ -9105,17 +9105,21 @@ PHP_FUNCTION(libvirt_list_active_domains)

Re: [libvirt] [libvirt-php] libvirt_list_active_domains returns garbage querying a Hyper-V host

2016-09-07 Thread Matthias Bolte
2016-09-07 14:20 GMT+02:00 Fernando Casas Schössow : > Hi all, > > I'm using libvirt-php to manage a Hyper-V 2012 R2 host. > When trying to retrieve the active VMs using the function > libvirt_list_active_domains() I get an array with the correct amount of > items but

[libvirt] [libvirt-php] libvirt_list_active_domains returns garbage querying a Hyper-V host

2016-09-07 Thread Fernando Casas Schössow
Hi all, I'm using libvirt-php to manage a Hyper-V 2012 R2 host. When trying to retrieve the active VMs using the function libvirt_list_active_domains() I get an array with the correct amount of items but with garbage instead of the domain names: Array ( [0] => P’*µ [1] => +µ [2] =>