Re: Base_convert changes

From: Date: Mon, 11 Mar 2019 10:51:23 +0000
Subject: Re: Base_convert changes
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-104647@lists.php.net to get a copy of this message
On Sun, Mar 10, 2019 at 1:29 PM Scott Dutton <scott@exussum.co.uk> wrote: > Hi, > > I have just put a pull request together to make some changes to > base_convert, the changes are as follows: > > 1, Allow conversion of negative numbers (fixes > https://bugs.php.net/bug.php?id=55393) > 2, Raise a notice when passing in invalid chars as input, currently they > are just silently ignored > > Part of the negative number change causes a BC break due to needing to use > a "zend_long" instead of a "zend_ulong" this breaks a number of tests, but > allows negative numbers to be represented correctly. > > The PR is here https://github.com/php/php-src/pull/3911/files > > I look forward to hearing thoughts on this > > Thanks > > Scott Both changes sound reasonable to me. Could you show some examples where the output is going to change due to the zend_ulong->zend_long switch? Nikita

« previous php.internals (#104647) next »