Bug #80560 [PATCH]: Strings containing only a base prefix return 0 object
Edit report at https://bugs.php.net/bug.php?id=80560&edit=1
ID: 80560
Patch added by: girgias@php.net
Reported by: girgias@php.net
Summary: Strings containing only a base prefix return 0
object
Status: Open
Type: Bug
Package: GNU MP related
PHP Version: 7.4.14RC1
Block user comment: N
Private report: N
New Comment:
The following pull request has been associated:
Patch Name: Fix Bug #80560: Strings containing only a base prefix return 0 object
On GitHub: https://github.com/php/php-src/pull/6549
Patch: https://github.com/php/php-src/pull/6549.patch
Previous Comments:
------------------------------------------------------------------------
[2020-12-29 01:24:42] girgias@php.net
Description:
------------
This came about in the review of the explicit octal literal RFC implementation.
It turns out that GMP extension will accept the following strings "0B", "0b",
"0X", and "0x" as valid strings if, and only if, no base or base = 0 is
provided.
Test script:
---------------
https://3v4l.org/ArU7r
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80560&edit=1
Thread (3 messages)