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

Reply via email to