Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95382 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12006 invoked from network); 22 Aug 2016 15:46:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Aug 2016 15:46:44 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.49 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.49 mail-wm0-f49.google.com Received: from [74.125.82.49] ([74.125.82.49:36232] helo=mail-wm0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/82-33251-36E1BB75 for ; Mon, 22 Aug 2016 11:46:44 -0400 Received: by mail-wm0-f49.google.com with SMTP id q128so126928637wma.1 for ; Mon, 22 Aug 2016 08:46:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=7mwPbWVA6w241kUOPuL5JwsctufXk5/JB0jskbmXrGM=; b=hfatKhm7yYTauc6NM66G1ce0b2y/ykirwuqX67hAexNU2jFj8XRZP1IkETuVFQ041k dO+8hAjVHmhwgjFs3ehh6HbdrA/xMDjdU/34/qlDroccVXXzW1EDNzzE1jYMdinRNYA4 psIjsMub2mvPacCt/qCpFiK0HWv/VpqWk/Kfaj363wF1R/lEuyg8387orrXf1zBo0lEL qdLFswZKlK7XHC8N2lfSNu5TZFOBf0Obzm1hmr7nkXnKRvHx0HdV0svoJw1LG+4UIko/ 3lFehlyV4473WfmzypYQRebsm+SMuoIPfuaS2iM6EVVV9BxAwmInvPppPcv5KWYqU8FZ /nUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=7mwPbWVA6w241kUOPuL5JwsctufXk5/JB0jskbmXrGM=; b=aktj11rv9hj++WGg+VPyFQXUwhyLm2MDnPRdu6xP5ucPm7px5grwCCC5qOpn/ZpKZy XfqSLIgOu2Lh96DEN5YoDC1zoPvVISqRC3sgGzVTjZinCQCy0bSPHKwFyRgRmvyVx3VN Bn6dphOBx0Fm926l2cNqsFghcm2TksayBV2Dsq13SL8GDkXYrbNTWOCQPveh2PUuvovB 0WgnBslSndLS31SExHdKiGmTLbDzvHLa/bPISJhj3RMxPxgzA9K2Wbt3UlHEjGfRd5jA SkwR0i2bNrp3c+7qOR+drMngBoTrayddVMNh0YibQ2f/2ExEceNw/yALv0VrJcKxixF5 fgsQ== X-Gm-Message-State: AEkooutsU4zsA5SnK8swgMUZqFUlBNl00VRCwk3zKrZpGhbLaX1K+WwP7pKkfiHY+3CJ4A== X-Received: by 10.28.144.5 with SMTP id s5mr16979612wmd.39.1471880800595; Mon, 22 Aug 2016 08:46:40 -0700 (PDT) Received: from [192.168.0.98] ([93.188.182.58]) by smtp.gmail.com with ESMTPSA id i1sm20849226wjf.12.2016.08.22.08.46.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Aug 2016 08:46:39 -0700 (PDT) To: internals@lists.php.net References: <0b8ebd55-976b-f3a9-9f70-de392f2bd8e6@gmail.com> Message-ID: <168af9d7-e368-9d2e-a5fc-aa810279415d@gmail.com> Date: Mon, 22 Aug 2016 16:44:16 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] BC break: ReflectionMethod::invoke() expects parameter1 to be object, string given From: rowan.collins@gmail.com (Rowan Collins) On 22/08/2016 16:40, Christoph M. Becker wrote: >> It is still ignored if it is a valid object, so the current beta's >> > behaviour doesn't actually make a lot of sense. > Well, see . Only as of 7.1.0beta3 ::invoke() > matches the behavior of ::invokeArgs(). OK, so that's a further inconsistency. The current version still doesn't actually make sense, though. If you want to validate that the correct argument is being passed, then the only value allowed should be null. > If so desired, I can revert that commit, but I wouldn't be happy with > sticking with a completely unused parameter, which obviously has been > and still is misunderstood. The parameter is still unused, and can be any object. The only sane validation would be to check explicitly for null, which is documented as the correct argument for both invoke() and invokeArgs(). Regards, -- Rowan Collins [IMSoP]