[RFC][DISCUSSION] Deprecate INI set/get aliases.

php.internals

Yasuo Ohgaki

11 years ago
Hi all, This is the RFC for INI set/get alias function deprecation. https://wiki.php.net/rfc/deprecate_ini_set_get_aliases Open issue is exception. Almost all aliases should be deprecated, but there may be exceptions. I hope everyone agrees to deprecation by document at least. Thank you for your time to address this RFC. Regards,
-- Yasuo Ohgaki yohgaki@ohgaki.net

Marcio Almada

11 years ago
> Hi all, > > This is the RFC for INI set/get alias function deprecation. > > https://wiki.php.net/rfc/deprecate_ini_set_get_aliases > > Open issue is exception. Almost all aliases should be deprecated, but there > may > be exceptions. I hope everyone agrees to deprecation by document at least. > > Thank you for your time to address this RFC. > > Regards, > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net
Hi, Yasuo I agree it's a good time to deprecate those aliases. Specially `mb_internal_encoding('UTF-8');` and other analogous redundant extension API that were created just as aliases to change runtime configuration options. Regards, Márcio Almada

Lester Caine

11 years ago
On 31/01/15 01:08, Yasuo Ohgaki wrote:
> Hi all, > > This is the RFC for INI set/get alias function deprecation. > > https://wiki.php.net/rfc/deprecate_ini_set_get_aliases > > Open issue is exception. Almost all aliases should be deprecated, but there > may > be exceptions. I hope everyone agrees to deprecation by document at least. > > Thank you for your time to address this RFC.
My only comment would be the one that the rfc displays perfectly ... In 'Before' if I click on session_cache_limiter I get taken directly to the manual page for it. How do I get to the same page in 'After'? If I drop 'session.cache_limiter' into the search I have the usual hassle of trying to get to the right pigging section of the website before it works, but I still have to search around for the session_cache_limiter entry as one gets 'session.cache_limiter doesn't exist. Closest matches: ' Many deprecated features exhibit this problem, but this one seems a lot more critical to resolve if you want to simplify things. ini_set values like max_execution_time don't even come up in a search!
-- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

Yasuo Ohgaki

11 years ago
Hi Lester, On Sat, Jan 31, 2015 at 5:48 PM, Lester Caine <lester@lsces.co.uk> wrote:
> My only comment would be the one that the rfc displays perfectly ... > > In 'Before' if I click on session_cache_limiter I get taken directly to > the manual page for it. > > How do I get to the same page in 'After'? > If I drop 'session.cache_limiter' into the search I have the usual > hassle of trying to get to the right pigging section of the website > before it works, but I still have to search around for the > session_cache_limiter entry as one gets 'session.cache_limiter doesn't > exist. Closest matches: ' > > Many deprecated features exhibit this problem, but this one seems a lot > more critical to resolve if you want to simplify things. ini_set values > like max_execution_time don't even come up in a search! >
Good point. But whole site search shows these INI on top. Document search could be improved. I agree. The same applies to all INI values. Regards,
-- Yasuo Ohgaki yohgaki@ohgaki.net

Lester Caine

11 years ago
On 31/01/15 18:39, Yasuo Ohgaki wrote:
> On Sat, Jan 31, 2015 at 5:48 PM, Lester Caine <lester@lsces.co.uk> wrote: > >> > My only comment would be the one that the rfc displays perfectly ... >> > >> > In 'Before' if I click on session_cache_limiter I get taken directly to >> > the manual page for it. >> > >> > How do I get to the same page in 'After'? >> > If I drop 'session.cache_limiter' into the search I have the usual >> > hassle of trying to get to the right pigging section of the website >> > before it works, but I still have to search around for the >> > session_cache_limiter entry as one gets 'session.cache_limiter doesn't >> > exist. Closest matches: ' >> > >> > Many deprecated features exhibit this problem, but this one seems a lot >> > more critical to resolve if you want to simplify things. ini_set values >> > like max_execution_time don't even come up in a search! >> > > Good point. > > But whole site search shows these INI on top. Document search could be > improved. I agree. The same applies to all INI values.
The whole site search only provides some ini_set/get values. (and not being able to access that from a wiki page is irritating at times like these!) This is not such a problem with the ones you are looking to add to the list but previous tidying has left manual entries somewhat lacking which tends to prevent any lookup. While the proposed changes only require a replacement of each entry with the alternate text, it is important that the manual has a better means of identifying all of the ini_set keys.
-- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

Yasuo Ohgaki

11 years ago
Hi Lester, On Sun, Feb 1, 2015 at 9:05 AM, Lester Caine <lester@lsces.co.uk> wrote:
> it is important that the manual has a better means > of identifying all of the ini_set keys. >
I agree. INI changes PHP behavior, it's better to be easily searchable with/without this RFC. Good addition for Future Scope. I added it . Regards,
-- Yasuo Ohgaki yohgaki@ohgaki.net