|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80560 Strings containing only a base prefix return 0 object
Submitted: 2020-12-29 01:24 UTC Modified: -
From: Assigned:
Status: Closed Package: GNU MP related
PHP Version: 7.4.14RC1 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2020-12-29 01:24 UTC]
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:


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-12-29 01:37 UTC]
The following pull request has been associated:

Patch Name: Fix Bug #80560: Strings containing only a base prefix return 0 object
On GitHub:
 [2020-12-30 11:51 UTC]
Automatic comment on behalf of girgias
Log: Fix #80560: Strings containing only a base prefix return 0 object
 [2020-12-30 11:51 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Oct 28 06:03:33 2021 UTC