Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107549 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 77943 invoked from network); 15 Oct 2019 10:44:06 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 15 Oct 2019 10:44:06 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id 96A542CFDDF for ; Tue, 15 Oct 2019 01:28:12 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Virus: No Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Tue, 15 Oct 2019 01:28:12 -0700 (PDT) Received: by mail-io1-xd32.google.com with SMTP id b19so44044679iob.4 for ; Tue, 15 Oct 2019 01:28:12 -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:content-transfer-encoding; bh=grsMQC1/VBxp9bMO1a7h59QlZ3vFrGyboFp7PGog+xw=; b=nMqJ9xVIs1N+Nswx+DTGcruRiW4yUj30SNIG75Jy0IEeN8p41zTZuwPt+1TksjbQPG ZrWGdW0G9jTYxMS6ihdiJc9vSiUFu1Zp2+ixYNTdwCjfpUcy52pimZhtFjrF5fqvrJ70 DSTtDWAxxFI70NqN7SaAruwvFVV5+V5+I4RLwoYwhfG8H6OWNgVAFhjGZVP5tovZjsKA +1om/JlcQj7+HUwBCaCm5Qp8kuckna2JfQMRRwXhtTgyGPtJjHiUrsCTFjM++ycxp8bU XhpQanfjQCn6RMJj2EfP4O0LPCn5dLBXNkzercxW9TBd6qoSV/AIiNEv+JDOCqMEGTDh SxqQ== 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:content-transfer-encoding; bh=grsMQC1/VBxp9bMO1a7h59QlZ3vFrGyboFp7PGog+xw=; b=msddZH/bAGpBikMNGcbdykaGkXcvDm3CZCpkxOiBHnEuPLpEeDGagsM3TUk1bmxo7/ 37QDGwXHWK5HubYsW6yHrCFC6qDf7OxaDjPWKckYadKBbxyRpaaTnTQu8hZLjhML6NvA FHEeg7G9ZTrrEPY5JwzPaz8cd4C4wfMop36jVLJ1inIyespxiDbZG2BEvz3+EDa3mH8J pec/LmoGlCTqeNw931uQcLMWn7ZqbcANAiiqrgEV5aFk+Y33sjX/qoB7MwGE2tgelSI4 vvleQInErnypW1KMNnslcv2hRdpnnc6LGyqAO7H/Wd/n8ZXKVBxUtzFhxq5ON1i8cG30 JipA== X-Gm-Message-State: APjAAAXpYrxkU0R7BTTHT7fgY5dXuZVLQfzciCAKJjiJlw5EmMV1hO7Z 7cysaS5pHhC0dGsGp3ZZskOh4pqwr9bP5pchnk8hdFc97N0= X-Google-Smtp-Source: APXvYqwwrYroR9Lp6OLjSFacO1aAYJGktTYjKwF7vbN4BAJxmtCJEfGOkwyRqwexzcwXzj7aaIUR7WcavXKcOgO9SV0= X-Received: by 2002:a92:3dca:: with SMTP id k71mr4633682ilf.12.1571128091291; Tue, 15 Oct 2019 01:28:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 15 Oct 2019 10:27:57 +0200 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Envelope-From: Subject: Re: [PHP-DEV] [VOTE] Reclassifying engine warnings From: gertp93@gmail.com (Gert) I may be a bit late to this party, but will the promotion to error exception of illegal offsets also happen for using resources as array keys? These currently produce a notice, and are then casted to an integer: https://3v4l.org/cQ8hf Or will the behaviour of that remain the same? On Fri, 11 Oct 2019 at 18:16, Claude Pache wrote: > > > > > Le 11 oct. 2019 =C3=A0 11:12, Olumide Samson a = =C3=A9crit : > > > > On Fri, Oct 11, 2019, 9:29 AM Benjamin Morel > > wrote: > > > >>> > >>> As people have expressed interest in hearing about direct technical > >>> benefits that these kinds of changes have ... let me give you an exam= ple > >>> that came up yesterday. > >> > >> > >> > >> Too bad this example comes after the vote has been made, and failed. > >> This would be a very strong argument in favour of using exceptions > >> everywhere in the next major version: codebase cleanup, room for more > >> optimization. > >> > >> Nikita, please fork PHP, we'll follow you ;-) > >> > >> =E2=80=94 Benjamin > >> > > > > I think I'm always available to contribute to a fork of a better PHP, c= oz I > > love the syntax not the garbages included in the current one. > > If you=E2=80=99re seeking a fork of PHP that wilfully breaks BC for the s= ake of cleanup and optimisation, you should seriously consider Hack. Althou= gh I don=E2=80=99t know whether they=E2=80=99ve already removed support of = the appalling implicit initialisation of variables to `null`, or of the dr= eadful backtick operator, you=E2=80=99ll be delighted to learn that they=E2= =80=99re on the process of removing references, PHP arrays (in favour of Ha= ck arrays and collections), and even that little pesky ` > https://hhvm.com/blog/2019/02/11/hhvm-4.0.0.html > > Enjoy. (But not with me: our company does not have the budget to migrate = 30 Mo of code without counting external libraries.) > > =E2=80=94Claude > >