Re: intval($resource)
| From: | Andi Gutmans | Date: | Sat, 28 Apr 2001 16:12:19 +0000 |
| Subject: | Re: intval($resource) | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-52710@lists.php.net to get a copy of this message | ||
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?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. Andi