Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105984 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 74038 invoked from network); 19 Jun 2019 10:46:28 -0000 Received: from unknown (HELO mail-vk1-f172.google.com) (209.85.221.172) by pb1.pair.com with SMTP; 19 Jun 2019 10:46:28 -0000 Received: by mail-vk1-f172.google.com with SMTP id w186so344451vkd.11 for ; Wed, 19 Jun 2019 01:01:04 -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=NtrPU4i6JgffFQHQ3/Xd4F+lpAuLtF0UW2Uxg440mAA=; b=o+GO+eZ1UeWQPOyJgUE96ReaZPIY9xH3UAiHTaYJpbTNfYg7h0KLe+bUYMQdkBHHot u9UjbgI/awF0CdLZij5BiNN9dS+nIHJtEJwkFZexX8bIwK/91UTZB4KUm/6YNbQo5ogx Ux7xQikc3cYMKy1ZTL52JKb5D44aoZZkRMfY5kvnznr7x1ZXFOAA5qbYiW+XF/7l/gZ2 mw8TUWI4DtyNp96dDtEW80+OKTQSN7Uyc1QuU/hdIA+qNttA/+EbdwyxdGtQKvlnVQWr BG9Qxk9Sj1c+LQA7+nYpuefSJd+IOYmA+/FxaKmwhMQirVksG4iXc6sArQZmHKrTq3Aj aVOA== 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=NtrPU4i6JgffFQHQ3/Xd4F+lpAuLtF0UW2Uxg440mAA=; b=tw9AhQYa7yasMygJLxPuLvnvU/u3z3fTAhL7Iwds5saRza9VrN234GkHSW4rXRhlrB X9d2umNcoUQPmvxq6KPyAxg24TDG7nB0RlwVlZaDtEHqi7wLQPYSzXRsUI2kxyx91jCf oLAqzsV3Nu1e3DsCE+wjZ7W2/QpDQnp8CkbJot2Dr20OIciuxTIhm0XItdcQnoGt0hBg Zsb2Kc4NO6xT/70x2n6eRVbv3b4SiSIxNI7HS+9R4XCWihUelCSCQ4QKH7XDanLE7NB/ kp6UlQSrcLo25QLuP/Je5p711EDwMUfosHZsloTSmYXaXxTcx9MwGHQjZ/7r4Upiqb1f nADw== X-Gm-Message-State: APjAAAXL1N9AuUHayHQAdQPpXkdK7rH/0qHLcdU3E+fR2RDKm1vuUY5C 9haszNnWDfdkNvEHtxu75K34Wrge1Y4mVvSc80c= X-Google-Smtp-Source: APXvYqz51UERHOdtIKSuZtOoLznO/pUXj4uFPSujiPYvdl1b4jJ5Z2Q4N/bWkANDbg8Q2ogFNyLJd/TRbhikwYsqu+Y= X-Received: by 2002:a1f:62c3:: with SMTP id w186mr1606323vkb.82.1560931263843; Wed, 19 Jun 2019 01:01:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 19 Jun 2019 10:00:52 +0200 Message-ID: To: Scott Dutton Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000080127a058ba8a104" Subject: Re: [PHP-DEV] [RFC] [Vote] Base convert changes From: krakjoe@gmail.com (Joe Watkins) --00000000000080127a058ba8a104 Content-Type: text/plain; charset="UTF-8" It will likely be easier if the Allow negative numbers implementation (targetting master only) is entirely separate from the Error on ignored characters implementation,. Cheers Joe On Wed, 19 Jun 2019 at 09:56, Joe Watkins wrote: > 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 >> > --00000000000080127a058ba8a104--