Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100373 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58291 invoked from network); 4 Sep 2017 20:05:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Sep 2017 20:05:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 74.125.83.43 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 74.125.83.43 mail-pg0-f43.google.com Received: from [74.125.83.43] ([74.125.83.43:36441] helo=mail-pg0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 84/F0-04538-BF1BDA95 for ; Mon, 04 Sep 2017 16:05:16 -0400 Received: by mail-pg0-f43.google.com with SMTP id m9so3617752pgd.3 for ; Mon, 04 Sep 2017 13:05:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=JdOJ9iuJr10pgDWHCZyLH9PVJzeXtA4pcqrh8qOTnEk=; b=nHcaB2YGsnAFPIJwMrmJqCJlViKWRvjJ03iQLdoLA1uT4dBiozqHpGdvFprRCfvLi+ 33qOMISRSif7NZ0RmbIF7DsYB7goCwuGGrpXYH7TzxIP9F8mjNbZHrnBK7FrCcm1UrJb TAYZmDOZpaS/QPfPoZwLnbrxGVQIGXz209vVg+xYzMD+UTFQXB487LyeoXymbMUl5byV CxBIpIjs2gWNxmEYqVAvdbz574UeIZ1HiUpWPK0KvA+KjTwTQG5fVI2JvpcfYFNifVtk bYbzs1hJEb0AL1uYilZLKWPpSg8RFELwoh5xOEUtBK4as/CDuCfM/1+uMsAQEjcpmw1q KFZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=JdOJ9iuJr10pgDWHCZyLH9PVJzeXtA4pcqrh8qOTnEk=; b=YaM7ypUnwH3q6EiwLRjIhpZvXHdZVuNPoONtCIUwYPB4h/Ldrgdgrs64XPOZknJNGA J2fPZ6BcKcLDwrf+y+2Ap4t4YqAC8z2p8glLAziHQBtK2IE8QXEwZBbjoRszpAXL4agy 3jgQDsHMAyrAcm7yhLUllEETd8J/WEB16UAXovnh7Rbq38QGMWjwde+2NF9Jy2ak61Dp uVMPRBdMMx64JM/QHOntlJ4Gflh3VGsoDtTH/0vRLR7WhmTNOyBi6WditMN+93j/OqmR YcIJZVchfEOXYMk8v12AeZO2FpDB8F600upQ8D9cdriyVe/HO+Slxr4z9Ydb3n9kcuP8 +ipA== X-Gm-Message-State: AHPjjUh/HNilJ8zXB7BcAsOnz+h7+RiZatWGRxj0s2YSisP2Xzaxp/t4 x+jUSTqwhe1hGi3UT0VehQSuw0Wfb+Ll X-Google-Smtp-Source: ADKCNb5GdxHKQSKSRUhLfu5xdqgRnJgTeB3T9LQ0mJsVqoYimqWPn8nPbu0Dt/1VM3S0D0+IBQf3oNGncmJMhhc6raY= X-Received: by 10.98.32.139 with SMTP id m11mr1530615pfj.172.1504555513298; Mon, 04 Sep 2017 13:05:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.180.133 with HTTP; Mon, 4 Sep 2017 13:05:12 -0700 (PDT) X-Originating-IP: [77.99.17.151] In-Reply-To: <4CFF3E6E-5B9B-49CE-9603-33170CD63421@gmail.com> References: <4CFF3E6E-5B9B-49CE-9603-33170CD63421@gmail.com> Date: Mon, 4 Sep 2017 21:05:12 +0100 Message-ID: To: Rowan Collins Cc: "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC][Discussion] Consistent callables From: danack@basereality.com (Dan Ackroyd) Stephen Reay wrote: > Regarding the big change you suggest, making protected/private methods return false unless a new third parameter is true in is_callable(): > I think you need to make your intention a *lot* clearer On 29 May 2017 at 12:01, Rowan Collins wrote: > Regarding is_callable, ....could lead to some very confusing bugs. IMO, when BC breaks are necessary, they should be big and obvious so people spot and fix them. Most of the feedback I got was how modifying the existing is_callable function was dumb, so I've updated the RFC, and dropped the idea of modifying the existing is_callable function. That function will stay as it is, and will be used to determine if a variable can be called in the current scope, through either direct invocation or call_user_func(). The RFC instead now proposes a separate function of is_callable_type, to determine if a variable can be used as callable in all scopes, and so will pass the callable type check for parameters and return types. cheers Dan Ack