According to UPGRADING [1], INI_SCANNER_TYPED
was added in PHP 7:
"- parse_ini_file()
:
- parse_ini_string()
:
. Added scanner mode INI_SCANNER_TYPED
to yield typed
.ini values."
However, the INI_SCANNER_TYPED
constant already exists in
PHP-5.6 and seems to be actually used.
--
[1] http://git.php.net/?p=php-src.git;a=blob_plain;f=UPGRADING;hb=PHP-7.0.0
Hi Sebastian,
According to UPGRADING [1],
INI_SCANNER_TYPED
was added in PHP 7:"-
parse_ini_file()
:
-parse_ini_string()
:
. Added scanner modeINI_SCANNER_TYPED
to yield typed
.ini values."However, the
INI_SCANNER_TYPED
constant already exists in
PHP-5.6 and seems to be actually used.
It was introduced in 5.6.1, as mentioned in the parse_ini_file()
docs[1]
and in the 5.6 UPGRADING file [2]. Alas, it's not uncommon for older
NEWS/UPGRADING entries to mistakenly appear in later versions.
--
[1]
http://git.php.net/?p=php-src.git;a=blob_plain;f=UPGRADING;hb=PHP-7.0.0--
[1] http://php.net/manual/en/function.parse-ini-file.php
[2] http://git.php.net/?p=php-src.git;a=blob_plain;f=UPGRADING;hb=PHP-5.6
Hi,
-----Original Message-----
From: Peter Cowburn [mailto:petercowburn@gmail.com]
Sent: Tuesday, December 1, 2015 10:25 AM
To: Sebastian Bergmann sebastian@php.net
Cc: PHP internals internals@lists.php.net
Subject: Re: [PHP-DEV] INI_SCANNER_TYPED: New in PHP 5.6 or PHP 7?Hi Sebastian,
On 1 December 2015 at 09:11, Sebastian Bergmann sebastian@php.net
wrote:According to UPGRADING [1],
INI_SCANNER_TYPED
was added in PHP 7:"-
parse_ini_file()
:
-parse_ini_string()
:
. Added scanner modeINI_SCANNER_TYPED
to yield typed
.ini values."However, the
INI_SCANNER_TYPED
constant already exists in
PHP-5.6 and seems to be actually used.It was introduced in 5.6.1, as mentioned in the
parse_ini_file()
docs[1] and in the
5.6 UPGRADING file [2]. Alas, it's not uncommon for older NEWS/UPGRADING
entries to mistakenly appear in later versions.
Removed that one from 7.0 UPGRADING, thanks for the ping.
Regards
Anatol