Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101656 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8301 invoked from network); 22 Jan 2018 16:46:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2018 16:46:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=carusogabriel34@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=carusogabriel34@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.50 as permitted sender) X-PHP-List-Original-Sender: carusogabriel34@gmail.com X-Host-Fingerprint: 74.125.82.50 mail-wm0-f50.google.com Received: from [74.125.82.50] ([74.125.82.50:35264] helo=mail-wm0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AD/88-28995-055166A5 for ; Mon, 22 Jan 2018 11:46:09 -0500 Received: by mail-wm0-f50.google.com with SMTP id r78so18158191wme.0 for ; Mon, 22 Jan 2018 08:46:08 -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=CdngOPRsmSlghYaBKYhnFJU1iokZK38/suq79ga39mY=; b=ffdYrxvWCuv8mPs7+8vJPgXjhcD8NDOGuEQ8vJmADqSA0x3rmEzD7ROblwYJkSSqbj Lv7TAZbBh1evvnfQZzsqrdXDAtB0l5MNevTJSvgGXNmIloNLxpJ42qgTaGT19KVZcmTN CjIHwo8Ew/kZSAErIOtS78sG3xCnsXHh64cLbZAe5BcrByKuBdGX1FUEQT/jwqt6HOCn N58gDAWku/P4xj0hYVJ/LKpCuJVoWmlNWVmPGt8uvC4I3TJclt21mlIPJ8+Q7GbF21d6 wQnzQuTyl1qHj7HKpmim9McbqnRCN0kg0gg9mrfP20lw5BR+Obt7za232TBV4JHcHyoh bvXw== 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=CdngOPRsmSlghYaBKYhnFJU1iokZK38/suq79ga39mY=; b=T78xbpThqPMz6MBZOtAALEoU3riJvy+dFZhOXerF0DHGdpawE6UgZ7SOVZHMaFx7AU 1rZh38r+tM3XnwICURnGnby1OWtG9mzNPoOMGb3owLWF5NpNEdrlJ7UrCDNJyfKO9mQh QIK9UaQPxvAJvkn/ycT5U2gXEStQbagPRBrzCQQgf6tPSEPsoFZZyW5xl4C2MwX17khl oJxA11zICrDll4aC0FgBaJsn2lATOCUA77odebsoSt28004zIuB78UfLMhLBo6SXAuTu eYuoqx3wqdwze9kROcq1GB5yunVfw0I+5wL7oqKBK96CKLLPDsrIH9cQ4UFGXA68qKmR J/Gg== X-Gm-Message-State: AKwxytcCY0d0K85+3t9EquFS5OIYQ6KSLfjxyhmiy3FS7IiY5hXByf2X rVYVYWpPOr6olEES/74R/dF5fr6DP2RamrVyLCw= X-Google-Smtp-Source: AH8x2270f3tiyKbbsb1Pm9itt3LciCfSgcu98/hhRiXWnsz+BxVhhv1gb1i5SiFtfg51ZJYVB+dyuTuM2aOV+brVpX4= X-Received: by 10.28.139.66 with SMTP id n63mr5645867wmd.101.1516639565809; Mon, 22 Jan 2018 08:46:05 -0800 (PST) MIME-Version: 1.0 References: <1516624483.18039.11.camel@schlueters.de> In-Reply-To: <1516624483.18039.11.camel@schlueters.de> Date: Mon, 22 Jan 2018 16:45:55 +0000 Message-ID: To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary="001a11442166928d380563602acc" Subject: Re: [PHP-DEV] [RFC] is_countable From: carusogabriel34@gmail.com (Gabriel Caruso) --001a11442166928d380563602acc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Johannes, thanks for your feedback! Can I ask you to elaborate (or maybe share a link where can I study and improve) more about the Reflection part? Sorry if it=E2=80=99s sounds trivial, is because I=E2=80=99m new to interna= ls =F0=9F=98=84 Em seg, 22 de jan de 2018 =C3=A0s 10:34, Johannes Schl=C3=BCter < johannes@schlueters.de> escreveu: > Hi, > > On So, 2018-01-21 at 18:01 +0000, Gabriel Caruso wrote: > > After that, I like to propose and discuss a new function for PHP 7.x > > (current 7.3): is_countable. > > > > *RFC*: https://wiki.php.net/rfc/is-countable. > > The primary place for this imo should be reflection. If there is high > demand we could also add a shortcut function like proposed (no strong > opinion on this either way from my side) > > Of course I notice that the current reflection can't cover all the > cases you want to cover, so maybe it might be interesting to extend > reflection with something which works on all variables/zval and wraps > all the is_* functions. > > johannes > > -- Gabriel Caruso --001a11442166928d380563602acc--