Re: Follow up on Octal literal RFC
| From: | G. P. B. | Date: | Mon, 21 Dec 2020 21:31:02 +0000 |
| Subject: | Re: Follow up on Octal literal RFC | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-112577@lists.php.net to get a copy of this message | ||
On Mon, 21 Dec 2020 at 19:36, G. P. B. <george.banyard@gmail.com> wrote:
> Now, onto the weird special case, which looks like a bug in the
> implementation of base_convert() as
> var_dump(base_convert('O', 8, 10));
> Will emit the following deprecation warning (but only if the starting base
> is 8):
> Deprecated: Invalid characters passed for attempted conversion, these have
> been ignored in %s on line %d
> string(1) "0"
> But when using octdec() it doesn't.
>
Correction, this is not the case. I was mistakenly using 'O' (capital o
instead of zero) in the test case.
This does not emit a deprecation notice.
Best regards,
George P. Banyard