Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105983 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 72238 invoked from network); 19 Jun 2019 10:42:22 -0000 Received: from unknown (HELO mail-ua1-f46.google.com) (209.85.222.46) by pb1.pair.com with SMTP; 19 Jun 2019 10:42:22 -0000 Received: by mail-ua1-f46.google.com with SMTP id 8so8827221uaz.11 for ; Wed, 19 Jun 2019 00:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GbpSlkP0TbQ/XossIxpahAifctsJ0M2GVbO5yRTmam0=; b=r7cTgBljr/jXQYTrO9f8D8Oe7tkPKSIVPulz3R93LBV3vydWYBD4oMakZvE+WdqlFF 7iBKl3lJgvqq1AwBJsQPj4oJFZ7FhkH01kGynuSmeZm1yUo5tPCWwLJHkJnEtQH68tFv +gEHxOc9dn+ZsBWZaahKsWKyqgevbfUaON6fpg5qijgHj7TjSDuS9P4Oc29eHVBmU/Z1 qI8rsxj2YaYcOpOMDvAouz4+uYjBQtkulD/7YETd0bD/3kceus3rFh+AG2ouA1YNngG9 gFqsPCgVusgOQKmcKtXT7MmwhOQX6yH6Eq/nh4vOBoHgShT0CCInUqrEQocyvMYFauQQ 2z0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GbpSlkP0TbQ/XossIxpahAifctsJ0M2GVbO5yRTmam0=; b=hB/ymqHQwOm9a3ydMfo7oUN5WXJhZwQdjnQ3axTQWBKV9pKCnlu0X/OpElAAkxI4iQ 93x/De+wY0Pi2dnElUPzcx5dxtfTFwxDVa4tF5PlNzeSC2GOZb0QCP7zPgfIe1D4sBKA mCgFxZhocGp2a0txdpnK6n6C8gyuVJvZ7b6kVpW8onciIWCip9TRbbKumetearWGFCH7 isIVXYWyhFh3U3eU/bPGSaNM9KBxoeyweQNm2HpZmXSBnxJaf6A61vICCe9Zlq+oHKDg R1sg8BzYo7Du56ZD3V+Ar0v03SmBaYlSIoaP5uV+cLpOYjJSlACIRmxAbXxOi8h8H1qM MzZg== X-Gm-Message-State: APjAAAUXasVqUTbK6Nm6HTYyKBn9sBFL3b1sSWL+n1oxpY0vfyPbSMAj NFN386LCZmBnQr/8+wagRWaahiXw1ewiUUxWrVU= X-Google-Smtp-Source: APXvYqzjsdyRNmgnOmEi1ZVM8uCIhap1iUG47uTiT/4V2c69cR1tquwGx3WSwWlCVZ1pQjQoz+InVVcA7msyJ83X/ck= X-Received: by 2002:a67:eb19:: with SMTP id a25mr14446464vso.109.1560931018067; Wed, 19 Jun 2019 00:56:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 19 Jun 2019 09:56:46 +0200 Message-ID: To: Scott Dutton Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000d9d25d058ba892b0" Subject: Re: [PHP-DEV] [RFC] [Vote] Base convert changes From: krakjoe@gmail.com (Joe Watkins) --000000000000d9d25d058ba892b0 Content-Type: text/plain; charset="UTF-8" There should probably be a PR targeting 7.4 with the implementation of "Error on ignored characters" as proposed for 7.4, and a PR targeting master implementing "Error on ignored characters" with exception change and implementing "Allow negative arguments". None of these PR's should cause tests to fail, and where new untested behaviour is introduced the PR should include tests for that. Cheers Joe On Wed, 19 Jun 2019 at 09:43, Scott Dutton wrote: > Hi Joe, > > I will take a look at conflicts. The failures are extreme value checks > which are a result of allowing the negative numbers. If the negative > numbers one passes I will fix all tests and add some more for the > negative values. The tests fail because of the unsigned -> signed change > (but as you say there were quite a lot of tests). > > Would it be easier for 2 prs ? one for each vote ? > > Thanks > > Scott > > > On 19.06.2019 08:31, Joe Watkins wrote: > > The implementation of this does not look ready, there are conflicts > > so I can't test it locally, but last time CI ran there were many > > failures. > > > > Cheers > > Joe > > > > On Wed, 19 Jun 2019 at 09:24, Scott Dutton > > wrote: > > > >> Hi all > >> > >> I have put my RFC base convert changes to vote this morning > >> > >> https://wiki.php.net/rfc/base_convert_improvements [1] > >> > >> Two votes, one to raise a deprecated error in PHP7.4 (raised to > >> exception in PHP 8) when base_convert encounters something it doesnt > >> know how to convert. > >> > >> Second vote is to allow negative numbers, eg base_convert('-FF', 16, > >> 10) would return -255 (this returns 255 currently) > >> > >> Voting ends 3rd July > >> > >> Thanks > >> > >> Scott > >> > >> -- > >> PHP Internals - PHP Runtime Development Mailing List > >> To unsubscribe, visit: http://www.php.net/unsub.php [2] > > > > > > Links: > > ------ > > [1] https://wiki.php.net/rfc/base_convert_improvements > > [2] http://www.php.net/unsub.php > --000000000000d9d25d058ba892b0--