Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114876 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 38888 invoked from network); 15 Jun 2021 07:01:28 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Jun 2021 07:01:28 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 99BA91804CC for ; Tue, 15 Jun 2021 00:17:55 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ua1-f53.google.com (mail-ua1-f53.google.com [209.85.222.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 15 Jun 2021 00:17:55 -0700 (PDT) Received: by mail-ua1-f53.google.com with SMTP id e7so2305902uaj.11 for ; Tue, 15 Jun 2021 00:17:55 -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=m6+pEtf7oMjpuxoEJ3L7eg4XE6hDNVU7Hyjt/4wbKck=; b=NWx1mbBvuuC/8XhUoxId9VFgn7BSay1C1QrfgrtaQaZI+afVvwXGqOmQgvgErbrlRx EZXiBsZ/wAtvLTcjOn7Tgp78fbam/kJ1balj5heQAjnDOM4QQbhd6+MToXKdz577nfag Ifa3TbAXFuMxiDEsZal9/iTf6Ct9hSytU9THCr72EBnzdl8iM2HrvI6d3cgEYM6tzisR h4BUYhwTgvUwt4NtbM0sZMdsuYszHE/U3LKhyjP1aD60tMoEpsuVUbGTvAhug0vfk1i4 HIoL1BdI1P2IyDpzZYvOLR2lT+TkfR2sLdXJLCrPjN7TBHPeRYNtvAPownZXEYWmj0II S/Fg== 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=m6+pEtf7oMjpuxoEJ3L7eg4XE6hDNVU7Hyjt/4wbKck=; b=QbrGzUMVPlII5x8jw+llu2llLebwmwc1BsEFVQKu88r1KCX5LxgvqS8sJyfnHGM2I6 CZ1eDB5gDH8NLl7BtfD4zXpwo8qjXx5c8C87ZS9uh13ah2/RnwblDW+vzMP8C4kRxNph m//8uHNoJMTvisw8fz/RUngijMa6c5y7VBN+xscjESqxkbz/KJcZhF0VgeJadaKK6Mk7 QW+TVTfSsnQMOO1Mr0dZemWsFTAgPA3GW65BMUOV+0D9E/u1XUhNxJs64eLaiNwpglma RbkdWMRt+XTO0nkbbySwxRoPL8U1NCw1wPZn0V2qCv1wtjOr4ML2Lq1suBIo+y1HnKv1 ZF9w== X-Gm-Message-State: AOAM533zib3uArw7ItBcp2GSpDhljzjcDoOw5TJdwt3e1jN0zpsXqRUZ DqNF14/qkBtGxz3FcMumyr0WdesWS4gvAjpBblc= X-Google-Smtp-Source: ABdhPJwuuMuNGryPrng1VduT18KNmPCcRrSh4tNBzmSTuOSShpSWd9PDQjm6rxXHfwhP7AGF6Y3J8MR9fGZgJ5uJN/s= X-Received: by 2002:ab0:638e:: with SMTP id y14mr16054272uao.82.1623741472711; Tue, 15 Jun 2021 00:17:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 15 Jun 2021 10:17:41 +0300 Message-ID: To: Kamil Tekiela Cc: Claude Pache , PHP internals Content-Type: multipart/alternative; boundary="000000000000b0279305c4c8c593" Subject: Re: [PHP-DEV] [VOTE] Deprecate autovivification on false From: dmitrystogov@gmail.com (Dmitry Stogov) --000000000000b0279305c4c8c593 Content-Type: text/plain; charset="UTF-8" Hi Kamil, PHP warnings are tricky, error handlers may cause side effects, throw exceptions, etc. Especially, for this deprecation you'll have to handle a new "slow" path (in VM and JIT) that should return back to the main path. Thanks. Dmitry. On Fri, Jun 11, 2021 at 3:13 PM Kamil Tekiela wrote: > Hi Dmitry, > > Thanks for voicing your concerns. > I have started writing implementation and it is definitely challenging for > me, because I am not that experienced with PHP internals yet. > https://github.com/php/php-src/pull/7131 > > Almost every implementation requires some amount of work. I would like to > ask you for more details on why you think this particular change is > infeasible. Do you see any problems that the implementation of this > deprecation message would cause? Would it be better to wait for PHP 9.0 and > remove it without deprecation? > As I see it, we already have an error for other scalar types. For false, > we will just need to throw a deprecation notice in the same places. It > doesn't require a major rewrite of PHP engine from what I can tell. > > Regards, > Kamil > --000000000000b0279305c4c8c593--