Re: Resource constants
| From: | Kalle Sommer Nielsen | Date: | Mon, 27 Oct 2008 05:16:20 +0000 |
| Subject: | Re: Resource constants | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41417@lists.php.net to get a copy of this message | ||
2008/10/26 Johannes Schlüter <johannes@php.net>:
> On Sun, 2008-10-26 at 14:32 +0100, Kalle Sommer Nielsen wrote:
>> So, I propose its either being a "supported" feature, or simply put an
>> deprecation notice on it (5.3) and remove it HEAD. I personally vote
>> for the last option, as I don't think resources should be constants as
>> they do not have the constant value even though they do on some level.
>
> I recently discussed the same issue on IRC, (due to #45982) we can't get
> rid of resources in constants completely as we need that for STDIN,
> STDOU, STDERR constants.
Yes I know, but still I think we should either making it a supported
feature or restrict registering resources on define().
>
> We might still block users from doing but I don't see real benefit from
> doing that - I think it's ok to have undocumented features ... :-)
I would rather not have so many undocumented features in the manual as
possible, even though they can be buggy like ticks for Windows
threaded webservers ;)
>
> johannes
>
>
--
Kalle Sommer Nielsen