Re: INI_SCANNER_TYPED: New in PHP 5.6 or PHP 7?
| From: | Peter Cowburn | Date: | Tue, 01 Dec 2015 09:25:23 +0000 |
| Subject: | Re: INI_SCANNER_TYPED: New in PHP 5.6 or PHP 7? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-89507@lists.php.net to get a copy of this message | ||
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 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.
>
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
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
[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