Re: Re: [DICUSS]Cleanup resource handling APIs
| From: | Sara Golemon | Date: | Mon, 02 Feb 2015 08:01:08 +0000 |
| Subject: | Re: Re: [DICUSS]Cleanup resource handling APIs | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81558@lists.php.net to get a copy of this message | ||
> On 2 Feb 2015, at 06:43, Xinchen Hui <laruence@php.net> wrote:
> furthermore, I'd like to discuss remove the handle in zend_resource struct...
>
> it may breaks some usage (use resource as long/double/string
I've seen uses in the wild where file handles are used as array keys (yes, I know, ugly and
wrong).
If we were to remove rsrc handle, we should formally deprecate it for at least one minor revision
first.
I'm all for killing it, and I fully support improving the internal API, but the gentler we are
with BC breaks, the better.
-Sara