Re: intval($resource)
| From: | Joe Brown | Date: | Sat, 28 Apr 2001 23:09:02 +0000 |
| Subject: | Re: intval($resource) | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-52805@lists.php.net to get a copy of this message | ||
Bah!
My newsreader is freaking out on replies... Please accept apologies for
null message.
IMO. The resource should be freed upon request, reguardless of refcount.
Further attempts to access the resource would then be in error. This logic
makes sense to me.
If the resource is not released, a warning should be generated.
@OCIFreeStatement would then squash the warning, if this is the desired
behaviour.
""Joe Brown"" <joebrown@somewhere.com> wrote in message
news:9cfi6l$75n$1@toye.p.sourceforge.net...
>
> "Andi Gutmans" <andi@zend.com> wrote in message
> news:5.0.2.1.2.20010428225557.038225f0@mail.zend.com...
> > At 08:50 PM 4/28/2001 +0200, Thies C. Arntzen wrote:
> > >On Sat, Apr 28, 2001 at 06:12:19PM +0200, Andi Gutmans wrote:
> > > > At 08:28 AM 4/28/2001 -0400, Joe Brown wrote:
> > > > >Having said that,
> > > > >1. is there a good reason OCI shouldn't free the resource
reguardless
> > > of the
> > > > >reference count?
> > >
> > > the problem is that freeing resources that are still in use
> > > will cause trouble once we try to use them (and expect they
> > > are still there)
> >
> > Well it will cause a warning because the resource doesn't exist anymore
> but
> > I don't think it would cause serious problems. In any case, I think
there
> > are two ways to look at this and none is really more correct than the
> other.
> >
> > Andi
> >
> >
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-dev-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>