Re: [DICUSS]Cleanup resource handling APIs

From: Date: Mon, 02 Feb 2015 08:47:03 +0000
Subject: Re: [DICUSS]Cleanup resource handling APIs
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-81564@lists.php.net to get a copy of this message
> On 02 02 2015, at 09:01, Sara Golemon <php@golemon.com> wrote: > > > >> 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). Yes, I definitely use that a lot and cannot see why this should be 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.

« previous php.internals (#81564) next »