Memory leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi 

 

I have some huge leaks !!!

I have a class define as followed

class sforce_webservices extends SOAP_Client

 

while (! $done) {

            $client = new sforce_webservices($session, $url);

            $result = $client->query($query);

            

            userFunc($result, &$done);

}

Most of the time I get a malloc error in the curl lib, but I don't know
where the leak comes from

 

Ok, I come from a world where you have to free memory by yourself and I
don't feel comfortable with garbage collectors.

I try also before looping to remove references to $client and $result by
doing

$client->_reset();

                        unset($client);

                        $client = NULL;

                        unset($result);

                        $result = NULL;

but it's still leaking !!!

 

Did someone noticed the same leak ?

Thanks

Laurent.

 

 

Php: 4.3.4

SOAP: 0.8RC2

Curl: 7.10.8

 


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux