Re: [libvirt] Re: Libvirt PHP binding

2009-04-15 Thread Daniel Veillard
On Wed, Apr 15, 2009 at 02:10:20PM +0200, Radek Hladik wrote: > Daniel Veillard napsal(a): >> On Tue, Apr 14, 2009 at 07:14:32PM +0200, Radek Hladik wrote: >>> Daniel P. Berrange napsal(a): >>> I've updated the documentation - added note that version 0.6.2 is >>> required :-) - and modified the

Re: [libvirt] Re: Libvirt PHP binding

2009-04-15 Thread Radek Hladik
Daniel Veillard napsal(a): On Tue, Apr 14, 2009 at 07:14:32PM +0200, Radek Hladik wrote: Daniel P. Berrange napsal(a): I've updated the documentation - added note that version 0.6.2 is required :-) - and modified the code to refuse to connect when version is lower that 0.6.2. I've put the mo

Re: [libvirt] Re: Libvirt PHP binding

2009-04-14 Thread Daniel Veillard
On Tue, Apr 14, 2009 at 07:14:32PM +0200, Radek Hladik wrote: > Daniel P. Berrange napsal(a): > I upgraded to libvirt 0.6.2 from rawhide - I had to compile it from SRPM > because RPM version reported some selinux undefined symbol. But my test > system is hybrid of F10, F11 and rawhide :-). > On

Re: [libvirt] Re: Libvirt PHP binding

2009-04-14 Thread Radek Hladik
Daniel P. Berrange napsal(a): On Tue, Apr 14, 2009 at 04:00:18PM +0100, Daniel P. Berrange wrote: On Tue, Apr 14, 2009 at 03:56:28PM +0200, Radek Hladik wrote: When running from command line everything seems to work fine. This is of course singlethreaded and potential resource leaks need not to

Re: [libvirt] Re: Libvirt PHP binding

2009-04-14 Thread Daniel P. Berrange
On Tue, Apr 14, 2009 at 04:00:18PM +0100, Daniel P. Berrange wrote: > On Tue, Apr 14, 2009 at 03:56:28PM +0200, Radek Hladik wrote: > > > > When running from command line everything seems to work fine. This is of > > course singlethreaded and potential resource leaks need not to cause a > > prob

[libvirt] Re: Libvirt PHP binding

2009-04-14 Thread Daniel Veillard
On Tue, Apr 14, 2009 at 04:00:18PM +0100, Daniel P. Berrange wrote: > On Tue, Apr 14, 2009 at 03:56:28PM +0200, Radek Hladik wrote: > > It works but httpd processes open a lot pipes and after a few hours with > > page refreshing every 10 sec I even ran into error: > > [Mon Apr 13 02:40:26 2009] [e

[libvirt] Re: Libvirt PHP binding

2009-04-14 Thread Daniel Veillard
On Tue, Apr 14, 2009 at 03:56:28PM +0200, Radek Hladik wrote: > So one thing is that every memory allocated by libvirt (using malloc()) > I need to copy to memory allocated using emalloc(). Also every memory, > that would be free()ed by libvirt I need to malloc() and copy from > emmaloc()ed m

[libvirt] Re: Libvirt PHP binding

2009-04-14 Thread Daniel P. Berrange
On Tue, Apr 14, 2009 at 03:56:28PM +0200, Radek Hladik wrote: > > When running from command line everything seems to work fine. This is of > course singlethreaded and potential resource leaks need not to cause a > problem. However when running from webserver, the result is much more > interesti