Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95412 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4889 invoked from network); 23 Aug 2016 13:56:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Aug 2016 13:56:52 -0000 Authentication-Results: pb1.pair.com header.from=lisachenko.it@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=lisachenko.it@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.41 as permitted sender) X-PHP-List-Original-Sender: lisachenko.it@gmail.com X-Host-Fingerprint: 209.85.215.41 mail-lf0-f41.google.com Received: from [209.85.215.41] ([209.85.215.41:34528] helo=mail-lf0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/D7-49014-3265CB75 for ; Tue, 23 Aug 2016 09:56:52 -0400 Received: by mail-lf0-f41.google.com with SMTP id l89so101426621lfi.1 for ; Tue, 23 Aug 2016 06:56:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=GLlmc3Y0l0fdmoe/fOsz2r4MKbFVxNh33P1N2eHe4tY=; b=yh5o/wSJusSvVKfWEhDYcBC1/9rfcvOUMNjYDGcyXlVNKYG+Uc8oRiMNcUBjhr57+L yiD9qrbugrPc/wlIPQE4FBiEcjwXsyePBcuygk/qOYEorBIQoxeUMeWSI7MqLwJqYK+v xJvLvRmp2GFC1bfmZFRG2Ag7zPETCdj+PQ2YhyYIPxvM47xENdpWcjCx6N9W1KBgsLWI qz9JjfFf4X1P2/GB/XxDoLbJDqKteYtv74hTZU48ooFYBaMJHQBbeD01ijfWHCFn/p7A M04GOQr5j+SLXhWN+mh321DbDFlRZxFSuqTArk9gTpcDLAD4IciBK+V6zSZ5l/0ugicS WZGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=GLlmc3Y0l0fdmoe/fOsz2r4MKbFVxNh33P1N2eHe4tY=; b=jAnCod2VoHdFVXxypFcoZs7NFEJs/ELqsWcxQorDTu2UtQduEVxAIt5zJxd0B7DQRL UGqRYlDHFzwWnF6f6lht/zB4oorycJbC+lOb7f+J1Su7+wDaLddaJmFfebx3Vmi2VA3X HXpeQ5ue/PuNRuiRSDUAMvx5bJc5Kuv34x3CbSkPES2XuyDUsYY/xzrqJ2xMmjvAHg3U MinbZidgpPU02fcdyRJOwiccTisWoHGrm80kWv9pkIJ7LOm0MlczYV6+hqecY+YHvhiN 0cSrLN0A/yD8OIqeSCsulPOqS6bxYFK2qctCmZNLXN0d0loiFdpzvVmiFvU4jS4INU6z Y3Xg== X-Gm-Message-State: AEkoouv5wb6T1PUqtOG3JlQnXzP++0o66+wjGRkPHOftsd5BpgWwTeYOqAiiTh1AI2scR5Y5hKtM/9xDuCH+ZA== X-Received: by 10.25.216.222 with SMTP id r91mr5894629lfi.33.1471960608528; Tue, 23 Aug 2016 06:56:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.196.144 with HTTP; Tue, 23 Aug 2016 06:56:47 -0700 (PDT) In-Reply-To: References: <031a2bf1-1996-1144-2b85-e10a40be9514@gmail.com> <7b81c830-1d05-a4ac-4713-1bb67cbec12c@gmx.de> Date: Tue, 23 Aug 2016 16:56:47 +0300 Message-ID: To: Julien Pauli Cc: "Christoph M. Becker" , Levi Morrison , Rowan Collins , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a1141272831e19b053abd89ef Subject: Re: [PHP-DEV] BC break: ReflectionMethod::invoke() expects parameter1to be object, string given From: lisachenko.it@gmail.com (Alexander Lisachenko) --001a1141272831e19b053abd89ef Content-Type: text/plain; charset=UTF-8 2016-08-23 16:40 GMT+03:00 Julien Pauli : > My patch allows that, but I can't find a use case to it. My use case for that was decorating of static methods with additional behaviour, so it's possible to cache the result of static methods, etc. Unfortunately, reflection API doesn't provide me such an ability, so I decided to switch to the combination of special closure with forward_static_call_array() and binding it to the desired scope. 2016-08-23 16:40 GMT+03:00 Julien Pauli : > Try it. Yes, sure, I will check. However as I say earlier, now I use closure extraction and scope binding as more natural way to invoke such methods. So missing scope argument for static methods and ReflectionMethod->invoke() is a nice thing to have, but not a critical one. --001a1141272831e19b053abd89ef--