Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105987 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 79531 invoked from network); 19 Jun 2019 10:58:50 -0000 Received: from unknown (HELO mail-lj1-f179.google.com) (209.85.208.179) by pb1.pair.com with SMTP; 19 Jun 2019 10:58:50 -0000 Received: by mail-lj1-f179.google.com with SMTP id 131so2334757ljf.4 for ; Wed, 19 Jun 2019 01:13:26 -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=sleWWRCln4FYrhoPlNVZrUS7n49qPmVSL0EPQfOf2Ng=; b=dR9OSrfhmJqhjXoXtoPXZDBcarifDnhBgg74GL999aPdhpGGhUsUBqRJoUjXORo744 dcz35EBUdgRyjzUZPW//Yc2f9Ma2oL/r8IGsMJIIh6oxnYIC9emkljIr1j6EQPwtTlNg qxtlmGVnLRfjJEf4nJuT7Y7Uzilr4kP/BLAFhvkysivjf3AvT8qUWPtdicxrvPbcpfga iq+nrkrId7duRfixpIFSZRVenrAWn0rUgohU8h2r26eMRjGjJ41w6b3aN0K5kBzXkVPT S9Nt//ukoRldNxg5ceq+7ydrrVbukrAqU964/w1OYv4mwmubiUiWA9oW0/DmGxa4uWMf 1GCw== 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=sleWWRCln4FYrhoPlNVZrUS7n49qPmVSL0EPQfOf2Ng=; b=GSRXu1BE+SD0mIf4H3zQ2BhmmRv7BWhtwpTYmkNJjgT5XESt2PtPMhvlRSxsvBnlrE KlsOJlNUubdpRV6glWOUIc/3ohzDQUs+nm6NyafSLPCSNCmFR8TEQYBpiAWGfOoSmK/i SaKBZr/W5nMLhGau7V5IWQveFYrQonzQbUofaGvtlkUeYtfOkkq41Md/TNS0RbjHAG0t ymt4lZkrSYDkbkP5xic2D+RroVl/wFHLvRQl+zj4lku0NcuoEawK16bPryZH7PHd/Fsm ObZql8ZFieYBMoIcyF5GzGviElhefgFIL2i7r0pHd/bKY7BcJjJ+QItZ/RfLS1aqtYnD OGZQ== X-Gm-Message-State: APjAAAXugP591mOYVIjmRHpFM7y3s9U/CZxe52qqKLiE/jjYgTB3C6ED /J/WOUraBJD2z4GzU0nMaS+7+secKiURjlNZhI4= X-Google-Smtp-Source: APXvYqy/OMptdedRlNhIWHlaSWeupbEAVmIBKJqM4y3N0N+RpdHxgQpQO2MDmP+7WeehSngq1OELs0U1KuP1mr1Y/+Y= X-Received: by 2002:a2e:2c04:: with SMTP id s4mr40934322ljs.61.1560932005952; Wed, 19 Jun 2019 01:13:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 19 Jun 2019 10:13:09 +0200 Message-ID: To: Scott Dutton Cc: Joe Watkins , PHP internals Content-Type: multipart/alternative; boundary="000000000000bbe043058ba8cdc3" Subject: Re: [PHP-DEV] [RFC] [Vote] Base convert changes From: nikita.ppv@gmail.com (Nikita Popov) --000000000000bbe043058ba8cdc3 Content-Type: text/plain; charset="UTF-8" On Wed, Jun 19, 2019 at 10:06 AM Scott Dutton wrote: > Hi Joe, > > I will have a look at splitting the PR, I am not at a computer where i > can code today though so will be tomorrow at the earliest. > > The Negative numbers will be a fair amount of work to make the tests > pass, would this still need to be done if the RFC doesnt pass ? I am > happy to do this work if it looks like it will pass, the reasons it > fails are outlined in the RFC as BC breaks. The tests seem to test the > values which make it fail more than I have seen other code use these > values. > > 887-939 are ignoring invalid input changes, everything else is negative > numbers > scripts/dev/bless_tests.php can be used to automatically update expected test output. Doesn't work for all tests (those with many manual wildcards for example), but may save you some work. Nikita > Hope that helps > > Scott > > On 19.06.2019 08: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] [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] [2] > >> > > >> > > >> > Links: > >> > ------ > >> > [1] https://wiki.php.net/rfc/base_convert_improvements [1] > >> > [2] http://www.php.net/unsub.php [2] > > > > > > Links: > > ------ > > [1] https://wiki.php.net/rfc/base_convert_improvements > > [2] http://www.php.net/unsub.php > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --000000000000bbe043058ba8cdc3--