Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108003 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 56553 invoked from network); 6 Jan 2020 11:19:01 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Jan 2020 11:19:01 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C1C16180505 for ; Mon, 6 Jan 2020 01:23:50 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, 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-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) (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 ; Mon, 6 Jan 2020 01:23:50 -0800 (PST) Received: by mail-io1-f48.google.com with SMTP id b10so47896694iof.11 for ; Mon, 06 Jan 2020 01:23:50 -0800 (PST) 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=xGBwT5NHF9XrX/Ul7zi/SO6Q/tS0Q9AA8JFjFn2JmRc=; b=pY25qCZe9Zf0M0YkS8GekRkvPEWmQ1AgTJHj6rTfP1b4bG7OAFEZk7Z7wB1qcJ/xbE jASNy7ik7vR4vNlFshGPjtBD0+4AnMx//eZ7kDEmLH+r9BlLLGgaSfo2OsRVVbg/Gpp7 JtNNhN5EaW4xwdJ6r+g/eT9gU3gwAc7WesqGbPT81bbeGS9uPM36c3EFsH1DPDRFURt0 t4Rwf+/3o54EQiu/0iF9D1PlIP3n04XjufVtXJj3m1UxyxQBJFwoceTwlufFsfUnp/Nf 4SLVVKWkflohaaBa6X2tk84tNZ2X3nRdpBbjIz9bXiwJqZK+gTYqHqhQfcb8sBkLsvDk 3qDg== 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=xGBwT5NHF9XrX/Ul7zi/SO6Q/tS0Q9AA8JFjFn2JmRc=; b=XA87jtIk74SB7hQNWwvDofv76nH+yhoy+szEfnQJ5pb5fWoIwAFA5qyDuG5xxUO8zT luSbXNKLLA/Tck4feHJii1J1/G1C21g9ViojalwyfEeaIdSvvpY/rXPiGgnbBCqYUefn BcVlyrLeySL0VLggQTMoPvlgHqhp8l+O8xnzexq2QBsZwgj4MEhcCoi1yLgwuRK0TvxU FclWC1vSn30UOtN7XHg3qesEMnawuQnrdGwFSzKGBQqJntv/qwHUL28n81y9Ln4okO3Y +nIU5H5w2dxrDHWs2RYxJKbGD9Yvagr4et67lZDDSCPYFFF/1tnSt+sPoJxLcihRUSfZ oY4g== X-Gm-Message-State: APjAAAVJbaGqaZiFJ44AorAFCbEjux+/2IeVQ+ePtECTGwQGjIHC2fMH wYre4RQjLKytJaIPoqp0TyYcj+fH+7sOnNBR6+o= X-Google-Smtp-Source: APXvYqwVPPzGT+Tn8DPS/1g6Np8fnEBlRO/LOKmBGKccSYyITu8TJ7McPFgK2+1dlovqbDJVh8hdy5XHnmSu/BAlW/k= X-Received: by 2002:a6b:ec0f:: with SMTP id c15mr63328640ioh.149.1578302625903; Mon, 06 Jan 2020 01:23:45 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 6 Jan 2020 10:23:35 +0100 Message-ID: To: Nikita Popov Cc: PHP Internals Content-Type: multipart/alternative; boundary="0000000000005d7a07059b753751" Subject: Re: [PHP-DEV] Ensure correct signatures for PHP magic methods From: carusogabriel34@gmail.com (Gabriel Caruso) --0000000000005d7a07059b753751 Content-Type: text/plain; charset="UTF-8" On Mon, 6 Jan 2020 at 10:05, Nikita Popov wrote: > On Sun, Jan 5, 2020 at 6:44 PM Gabriel Caruso > wrote: > >> Hello Internals, >> >> I have a PR proposing to start checking the signatures for PHP magic >> methods in the next major version of PHP: >> https://github.com/php/php-src/pull/4177. The idea for this PR came from >> https://bugs.php.net/bug.php?id=69718. >> >> I'd like to hear your opinion before putting more effort into this :) >> >> Best regards. >> > > To be clear, the suggestion here is to verify that no *wrong* types are > specified -- but not specifying a type at all remains legal, right? If so, > sounds reasonable to me. > Right! If no type is provided no problem but, if provided, then we're going to check. Important: *this has nothing to do* with `strict_types` flag enabled or not. > > Nikita > Best regards, --0000000000005d7a07059b753751--