Re: intval($resource)
| From: | Andi Gutmans | Date: | Fri, 27 Apr 2001 23:19:43 +0000 |
| Subject: | Re: intval($resource) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-52625@lists.php.net to get a copy of this message | ||
At 06:03 PM 4/27/2001 -0400, Joe Brown wrote:
Run into a spot of trouble using Metabase(db wrapper) because of it's use of casting a $var=intval($resource) where OCIFreeCursor fails to function after it has been casted. Guessing that it fails because intval is creating a reference to the resource, in turn OCI does not release the resource because there additional reference exist. I'd like to start working on fixing this, but don't know which behaviour to attack. Does OCI need to be fixed or intval()? Suggestions anyone...Is there a good reason it needs to use intval() on the resource? To be quite honest intval() shouldn't really return a valid value for resources and just by chance it returns the resource id which is probably not a good thing. We can try and look into fixing this problem though. Andi