Re: [RFC] Warn on conversions from resource to string

From: Date: Tue, 24 Sep 2024 13:24:41 +0000
Subject: Re: [RFC] Warn on conversions from resource to string
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-125663@lists.php.net to get a copy of this message
On 24.09.2024 at 14:18, Gina P. Banyard wrote: > I would like to propose a short RFC about warning on conversions from resources to strings, > similar to what a conversion from array to string does. > > Let me know what you think about it: > https://wiki.php.net/rfc/warn-resource-to-string The ssh2 wrappers[1] used to use this "feature". I'm not sure whether there is another way to accomplish the same now. If not, that should probably be done prior to emitting a warning for the resource to string conversion. [1] <https://www.php.net/manual/en/wrappers.ssh2.php> Christoph

« previous php.internals (#125663) next »