Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101985 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97320 invoked from network); 18 Mar 2018 22:42:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Mar 2018 22:42:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.220.176 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.220.176 mail-qk0-f176.google.com Received: from [209.85.220.176] ([209.85.220.176:43944] helo=mail-qk0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A2/2B-15530-A3BEEAA5 for ; Sun, 18 Mar 2018 17:42:02 -0500 Received: by mail-qk0-f176.google.com with SMTP id g184so16472086qkd.10 for ; Sun, 18 Mar 2018 15:42:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=JPXT1evsBvXjFPoYLHX3OkUcqeJoOlC48ufBcaOEBwY=; b=2TWtM3l80qJP7p20aNwZyMfQm3jmE4x3OXBrgNPL4kmI18SUlwBOHeQqfHhHIGcRC+ xzb1130zdT7bKTcl+CU+8l1eYMXhHZseVAkHcZ46m2qyaV3KqGiYXUfkPZSQp9mrrhnY 5ShNMjALhKIrh5/VS794a3njL1f7OCC0KwHSm+VoIBxT+Tx1IPFZYKQwup0qOloJznV6 vjNEKsA+gFht6XLYKXivDqlYpfN9GmjJqf4c/JKZvNdAxcyofZ1wCoZXoLDjnFVfpB4w EN6LWN+N3VRzal8IHFhTwQQO/8q5QxzG/5OcAPFnniOCkQpwHsygK+c2musa7kDzxpdM 8Paw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=JPXT1evsBvXjFPoYLHX3OkUcqeJoOlC48ufBcaOEBwY=; b=jsBs4Tgu22fwTmBmHPPKhXCD3+mGzgx+aCSaoflgyC75q/RrxfqTOFGVv2kt5TYotx hA4Oww2szNX/48atwWtxoGOyBLO8p1N2loYxlFzTN880OEi1pUC7ZjSy/1MI3dJng0ff E44iGjtdblXJY2IdkKrqHeVscMJ6OdEVvMr9EuU2Fl89t5EZdVHS9Ls7OO4Rn7GpGqUn fKmxsspmCevVE+bOXUVtNCQ4qpSca70bL3k03dv9qWsLQWxSm5wFLA3hCMMFoTpSa1R0 hTWH2V7qtVnDbAxOT6Xs1W32vKYVb4mF4JIdtTcbXKkmICdVxyCMNQYoYsilmtS2Smm0 iBvQ== X-Gm-Message-State: AElRT7HhTS7J4KiGwElqWYeWzA9ef4VddExsNam/P4wELECFtCmLaS4I EyG4ybfyKlmjkKKrmTgOpdzm19clHVhMlQfUk28SVw== X-Google-Smtp-Source: AG47ELtMn20LuuiMPJtpDNkIp34GxH9TlaWnLPSRPH8/J2tktR2+dIux6t5/sio7HpX5iYVx8cCXHPMvs/7Qd4dV3KA= X-Received: by 10.55.158.137 with SMTP id h131mr14150655qke.330.1521412919633; Sun, 18 Mar 2018 15:41:59 -0700 (PDT) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.12.155.169 with HTTP; Sun, 18 Mar 2018 15:41:59 -0700 (PDT) X-Originating-IP: [73.9.224.155] In-Reply-To: <1a373841-649b-aef0-1eea-637980463bbd@gmail.com> References: <1e29d1b7-dbf4-35d5-61cc-8348c195984a@gmx.de> <1a373841-649b-aef0-1eea-637980463bbd@gmail.com> Date: Sun, 18 Mar 2018 18:41:59 -0400 X-Google-Sender-Auth: l1SyU8gpmUoZys9zDMTLgdkPIko Message-ID: To: Stanislav Malyshev Cc: "Christoph M. Becker" , PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Re: [RFC] Base Conversion Clowniness From: pollita@php.net (Sara Golemon) On Sun, Mar 18, 2018 at 5:49 PM, Stanislav Malyshev wrote: >>> https://wiki.php.net/rfc/base-convert >> >> Is there any chance to revive this RFC? There are at least three >> tickets in the bug tracker regarding the sloppy behavior of base_convert(): > > I think if we want to take this RFC forward it should be reduced to > either proposing one action, instead of four, or at the worst case, > choice of two for vote. > Agreed, I presented it as more options initially so that we could talk out what options might be preferred before going to any kind of voting. Given the lack of opinion on the matter, I'd probably be inclined to present option B as the official proposal. Consistent with PHP functional APIs. > It also needs BC impact section added - AFAIK it may break some tests > and _php_math_basetozval is PHPAPI, which means besides 4 uses in core, > any extension could be using it and that extension may not be prepared > for it working differently. Which means if we change it, the failure > behavior that happens should be such that application ignoring it would > not have trouble - at least not worse than today. > Technically, the internal API as it stands *can* return FAILURE already, though I can see your argument that a caller might assume that it'll never fail so long as they pass a string with a valid base. I don't think I agree with your point, as it's reasonable to expect an API caller to examine the return code of the function they're calling,. but I can see where you're coming from. -Sara