Re: intval($resource)

From: Date: Sat, 28 Apr 2001 18:50:00 +0000
Subject: Re: intval($resource)
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-52741@lists.php.net to get a copy of this message
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) > > There are different ways to look at this. Some people might think it should > and some might think it shouldn't. I'm not even completely sure this is > consistent across all the db modules of PHP. > > > >2. Should intval not pump up the refcount when doing something silly like > >converting a resource to an integer? > > There was a bug in the Zend engine which is at least partially the reason > for you seeing the behavior you saw. Zeev fixed it a few minutes ago. I > suggest you try and use the latest CVS and let us know how it goes for you. if that doesn't help - could you please send me a minimal testscript that shows the problem? (< 50 lines) - i'll then dig into this a bit... re, tc > > 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 >

« previous php.dev (#52741) next »