Bug #80560 [NEW]: Strings containing only a base prefix return 0 object
From: girgias
Operating system:
PHP version: 7.4.14RC1
Package: GNU MP related
Bug Type: Bug
Bug description:Strings containing only a base prefix return 0 object
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 bug report at https://bugs.php.net/bug.php?id=80560&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80560&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80560&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80560&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80560&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80560&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80560&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80560&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80560&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80560&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80560&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80560&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80560&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80560&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80560&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80560&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80560&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80560&r=mysqlcfg
Thread (3 messages)
- girgias@php.net