On Sun, Mar 10, 2019 at 1:29 PM Scott Dutton <sc...@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

Reply via email to