Bug #80560 [Opn->Csd]: Strings containing only a base prefix return 0 object

From: Date: Wed, 30 Dec 2020 11:51:24 +0000
Subject: Bug #80560 [Opn->Csd]: Strings containing only a base prefix return 0 object
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231311@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80560&edit=1 ID: 80560 Updated by: cmb@php.net Reported by: girgias@php.net Summary: Strings containing only a base prefix return 0 object -Status: Open +Status: Closed Type: Bug Package: GNU MP related PHP Version: 7.4.14RC1 Block user comment: N Private report: N New Comment: Automatic comment on behalf of girgias Revision: http://git.php.net/?p=php-src.git;a=commit;h=abecaab09f8d39b5d2d6bc336e91595aae0d5a91 Log: Fix #80560: Strings containing only a base prefix return 0 object Previous Comments: ------------------------------------------------------------------------ [2020-12-29 01:37:39] girgias@php.net 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 ------------------------------------------------------------------------ [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

« previous php.bugs (#231311) next »