atom feed47 messages in net.php.lists.internalsRe: [PHP-DEV] [RFC] Remove deprecated...
FromSent OnAttachments
Nikita PopovOct 11, 2014 1:52 pm 
Kris CraigOct 11, 2014 4:47 pm 
Rasmus LerdorfOct 11, 2014 5:13 pm 
Derick RethansOct 12, 2014 12:54 am 
Derick RethansOct 12, 2014 12:56 am 
Lester CaineOct 12, 2014 12:59 am 
Kris CraigOct 12, 2014 1:19 am 
Nikita PopovOct 12, 2014 3:11 am 
Maciej SobaczewskiOct 12, 2014 3:23 am 
Zeev SuraskiOct 12, 2014 3:36 am 
Andrea FauldsOct 12, 2014 5:39 am 
Yannick KomotirOct 12, 2014 3:25 pm 
Rowan CollinsOct 12, 2014 5:35 pm 
Pierre JoyeOct 12, 2014 11:51 pm 
Lester CaineOct 13, 2014 12:06 am 
Rowan CollinsOct 13, 2014 1:29 am 
Julien PauliOct 13, 2014 2:50 am 
Dmitry StogovOct 13, 2014 3:29 am 
Jan EhrhardtOct 13, 2014 5:10 am 
Pierre JoyeOct 13, 2014 5:21 am 
Jan EhrhardtOct 13, 2014 5:46 am 
Johannes SchlüterOct 13, 2014 5:48 am 
Pierre JoyeOct 13, 2014 6:41 am 
Stas MalyshevOct 13, 2014 11:02 pm 
Stas MalyshevOct 13, 2014 11:06 pm 
Johannes SchlüterOct 14, 2014 7:00 am 
Pierre JoyeOct 15, 2014 1:24 am 
Nikita PopovDec 20, 2014 9:33 am 
Xinchen HuiDec 20, 2014 7:22 pm 
Andrea FauldsDec 20, 2014 7:25 pm 
Xinchen HuiDec 20, 2014 7:29 pm 
Pierre JoyeDec 20, 2014 7:43 pm 
Xinchen HuiDec 20, 2014 7:49 pm 
Pierre JoyeDec 20, 2014 9:36 pm 
Rowan CollinsDec 21, 2014 4:29 am 
Ralf LangDec 21, 2014 4:37 am 
Rowan CollinsDec 21, 2014 4:44 am 
Nikita PopovDec 21, 2014 5:30 am 
Alain WilliamsDec 21, 2014 5:53 am 
Alexey ZakhlestinDec 21, 2014 6:23 am 
Alain WilliamsDec 21, 2014 7:12 am 
Ralf LangDec 21, 2014 9:27 pm 
Pierre JoyeDec 21, 2014 10:04 pm 
Alain WilliamsDec 22, 2014 1:17 am 
Ferenc KovacsDec 22, 2014 5:24 pm 
Niktia NefedovDec 26, 2014 2:21 am 
Pierre JoyeDec 26, 2014 3:11 am 
Subject:Re: [PHP-DEV] [RFC] Remove deprecated functionality in PHP 7
From:Rowan Collins (rowa@gmail.com)
Date:Oct 12, 2014 5:35:09 pm
List:net.php.lists.internals

On 12/10/2014 11:11, Nikita Popov wrote:

For example, things like this:

# style comments in ini files (since PHP 5.3)

I don't think we should remove at all (or why is this even deprecated?!

Because ini files use ; for comments and not #.

I was curious enough about this to dig into source control and do some sleuthing, and it looks like what actually led to this situation was:

- Between 5.2 and 5.3 (late 2007 and early 2008), the ini parsing code saw a lot of heavy modifications [1], including a patch adding many new syntax features, and a subsequent rewrite from flex to re2c. - This, inevitably, led to a bunch of regressions. As later pointed out, the accepted format wasn't really documented in the first place. [2] - One of those bugs had to do with the parsing of # characters. [3] - The behaviour of # as comments in earlier versions seems to have been a side-effect of something else, rather than a deliberate feature. In fact, it was possible to have a key starting with #, but a line starting # that had no = was silently discarded. [4] - As a result, # was added back as an explicit comment character, but with a deprecation notice. [5]

My guess is that the reasoning was that semicolon was always the "correct" comment character, so people should be encouraged to use it.

Whether "deprecated" is the right word for that, I'm not sure.

[1] http://lxr.php.net/history/PHP_5_3/Zend/zend_ini_scanner.l [2] https://bugs.php.net/bug.php?id=47703 [3] https://bugs.php.net/bug.php?id=44575 [4] http://3v4l.org/AoI5H [5] http://lxr.php.net/diff/PHP_5_3/Zend/zend_ini_scanner.l?r2=%2FPHP_5_3%2FZend%2Fzend_ini_scanner.l%40b3d0514b6f87af37a7750a0f4c95e4a12a8f7009&r1=%2FPHP_5_3%2FZend%2Fzend_ini_scanner.l%40193dd31a22a52cfdbd30135b1025ca774d1e98b4