Re: DB - is it necessary to call "$res->free()" or is that automatically called in the package?

From: Date: Fri, 19 Nov 2004 18:00:24 +0000
Subject: Re: DB - is it necessary to call "$res->free()" or is that automatically called in the package?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15693@lists.php.net to get a copy of this message
On Fri, 19 Nov 2004 06:02:13 -0800 (PST), Stowe Spivey <spiveyspivey@yahoo.com> wrote: > I seem to recall reading somewhere that free() was called > automatically and I didn't need to call it. Is that right? > What's your $res for? If you're doing a query then you need to free your $res manually unless you want it to be open until the end of your script. If you're using getAll, getOne, or getRow then it will return the result and auto-free the resources. -- Justin Patrin

« previous php.pear.general (#15693) next »