[snip]
> +if (domain != NULL) {
> +rv = virDomainFree (domain); // Y.Kawada
> +if (rv != 0) {
> +php_error_docref(NULL TSRMLS_CC,
> E_WARNING,"virDomainFree failed with %i on list_domain: %s", rv,
> LIBVIRT_G (last_error));
> +
sorry.
fixed a little.
Regards,
Yukihiro Kawada
diff --git a/examples/libvirt.php b/examples/libvirt.php
index 10e7e38..8a54acd 100644
--- a/examples/libvirt.php
+++ b/examples/libvirt.php
@@ -22,7 +22,7 @@
}
function get_hostname() {
- re
This patch for libvirt-php Pre-4.2 version.
I checked with libvirt 0.8.8 version.
I fixed irConnectClose failed issue on list_domains.
And web example codes updated for 0.8.8 API.
This issue is:
$domains = libvirt_list_domains($conn);
PHP Warning: main(): virConnectClose failed with 1 on destruc