Re:PHP 5.4.6 released
by X-Istence on Friday August 17, 2012 @01:36PM
(#4397621)
This change was made to fall in line with other .ini parsers, it is after all an "official" configuration file format: http://en.wikipedia.org/wiki/INI_file
Using # was an extension on top of what is allowed in Windows...
Re:PHP 5.4.6 released
by X-Istence on Friday August 17, 2012 @05:39PM
(#4398952)
The ini file format was first introduced in Microsoft Windows. The API's that are available in WIN/WIN32 are probably considered the most official and it does not support # as a comment delimiter...
Re:PHP 5.4.6 released
by masklinn on Friday August 17, 2012 @11:39AM
(#4396921)
> There is a 5.3.X and a 5.4.X version happening concurrently?
That's not uncommon, and useful for people in production who'd still need bug fixes but don't want to risk breakages due to new features (and potential grammar changes) and the like. Language versions often have end-of-life dates which follows the release of the next version (and even the one after that) by a significant amount of time (Python 2.6 will be EOL'd in October 2013, even though Python 2.7.0 was released in July 2010.
FWIW (and ignoring the 3.x timeline) here's the CPython relase history for 2.6 and 2.7:
(yeah I know it's missing the 2.6.7 tag, not sure why it's not in the repo, it should be right before 2.7.2, on 2011-06-03; also the last 2.5 release — 2.5.6 — happened between 2.7.1 and 2.7.2, 2011-05-28)
Re:PHP 5.4.6 released
by eykanal on Friday August 17, 2012 @10:52AM
(#4396619)
That's fairly common. 5.3 hasn't reached end-of-life yet, so bugs are still being fixed. 5.3.16 is a bugfix release, wheres 5.4 will contain bugfixes and may (I don't know, I haven't read the release logs) also contain new features.
Re:PHP 5.4.6 released
by k3n on Friday August 17, 2012 @12:01PM
(#4397091)
Yes, 5.4 introduced breaking changes such as the new array syntax (finally!), among other things. There was also a very heavy amount of refactoring internally in the Zend Engine, which could cause extensions to break.
Re:PHP 5.4.6 released
by Firehed on Saturday August 18, 2012 @01:17AM
(#4400313)
The new array syntax isn't a breaking change; however there was a lot of functionality deprecated in 5.3 that was completely removed in 5.4 which would definitely break some code.
Unfortunately there were some bugs introduced in 5.4 that are preventing us from upgrading (our actual code is fine). Quite a shame as I'm quite looking forward to the new additions.
Isn't it nearly universally accepted in every other language?
Let me know if you spot the developer discussion on this logic?
(update: apparently this started with 5.3 not 5.4)
Using # was an extension on top of what is allowed in Windows...
"Some software supports the use of the number sign (#) as an alternative to the semicolon for indicating comments."
What's the 'official' definition of the ini format and what's really not allowed?
According to the referenced ChangeLog
There is a 5.3.X and a 5.4.X version happening concurrently?That's not uncommon, and useful for people in production who'd still need bug fixes but don't want to risk breakages due to new features (and potential grammar changes) and the like. Language versions often have end-of-life dates which follows the release of the next version (and even the one after that) by a significant amount of time (Python 2.6 will be EOL'd in October 2013, even though Python 2.7.0 was released in July 2010.
FWIW (and ignoring the 3.x timeline) here's the CPython relase history for 2.6 and 2.7:
(yeah I know it's missing the 2.6.7 tag, not sure why it's not in the repo, it should be right before 2.7.2, on 2011-06-03; also the last 2.5 release — 2.5.6 — happened between 2.7.1 and 2.7.2, 2011-05-28)Unfortunately there were some bugs introduced in 5.4 that are preventing us from upgrading (our actual code is fine). Quite a shame as I'm quite looking forward to the new additions.
For those of you who still thinks PHP is the best thing - don't give me bad karma :)