Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94436 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75361 invoked from network); 8 Jul 2016 21:54:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jul 2016 21:54:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.173 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.161.173 mail-yw0-f173.google.com Received: from [209.85.161.173] ([209.85.161.173:34953] helo=mail-yw0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 55/07-18622-81120875 for ; Fri, 08 Jul 2016 17:54:32 -0400 Received: by mail-yw0-f173.google.com with SMTP id l125so47667558ywb.2 for ; Fri, 08 Jul 2016 14:54:32 -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; bh=uze3nQZIgl4r26wArcpPTCFTJ39yGXGxsSqp5pTD7BY=; b=tlUDClCnpNuRv2onFa/AhMcW/JmELEImnhT5j2iwm5dDzAjcQilPFYvn8U1O2RFJnr Dj8xYUEyAAkqNr9sOUV1mbk1nSnMeo4171bZd3GMX37y5aHbzRI5UKAIHC/JftvquiBo mp5sZEDT1O4BETI7f9g+f3FC0lNqU5DBMlcK2oeWOSxbhz0lbbQXQGUI3QmsWdQttHoP r5dwa+LetSW50PhKuiTww3x3l/WOZxQUKiFIhywkzis2pVuLNM2Ik1Rx2xlZU3g4oZcI +DRkqDdfXF5M3B6g0Gtbr+wiCn3i5pBzIbc2kLtz72NmmeC8bf/GVdCk8TNUfPaTeI/g tnaQ== 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; bh=uze3nQZIgl4r26wArcpPTCFTJ39yGXGxsSqp5pTD7BY=; b=X++rwETp6lDRMB9D3bd91+TgBhpvgGVZkFn5qfn7FZGOnl4RNPiT7JrBngEWZUjuqw pcEOLzl9xPhTjca1/MFswV1siyyfuqxw2n5xDaSkzFbkAWZKCY3OvRx6yqjh2APXnRTD F6IKfgEfBSxIA3zMRchV13FQYY0cFaAgBIY/1z+SjTEBhwnNHq77Zrw7BoN7l3a4UGKK f8nyPOUINgTqTNjywAN7lE4rFsaqwG/ukUVPOSrrrRyPjTxAJtqn1RSK+vHrto4lt1wc EmD8e8YtN5vxaib4io3aGlxxHMJG+V8zjnYK4SMtrl9ya0kcb2E2X4fZOKW/b7atei2T TMOg== X-Gm-Message-State: ALyK8tL5xyFXKOlzjOYf76hDv7hUMJ1M7i5Pe2D45Oh6SswZpdc7GuNLOjqHOiiKBz159rjX/L5DCWl2EHuzLA== X-Received: by 10.129.177.129 with SMTP id p123mr5961698ywh.109.1468014869679; Fri, 08 Jul 2016 14:54:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.131.203 with HTTP; Fri, 8 Jul 2016 14:54:29 -0700 (PDT) In-Reply-To: <7716d180-2365-efc9-e9b3-9fe0998e273b@fleshgrinder.com> References: <7716d180-2365-efc9-e9b3-9fe0998e273b@fleshgrinder.com> Date: Fri, 8 Jul 2016 23:54:29 +0200 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=94eb2c1461fad53067053726d810 Subject: Re: [PHP-DEV] [RFC] [Vote] var_info From: nikita.ppv@gmail.com (Nikita Popov) --94eb2c1461fad53067053726d810 Content-Type: text/plain; charset=UTF-8 On Fri, Jul 8, 2016 at 9:49 PM, Fleshgrinder wrote: > Hi! > > Voting on var_info has opened and will stay open until 2016-07-22: > > https://wiki.php.net/rfc/var_info > Not a big fan of this in general (imho belongs in userland), but I'd like to comment on one specific issue: You are doing a callability check for all arrays and strings. I wouldn't be comfortable passing any data that potentially derives from external sources (aka all data) to that function. E.g. this could trigger autoloading on user-provided values -- while we have some protections in place to avoid the most egregious security vulnerabilities, I wouldn't be comfortable with that. There probably other funky things that can happen here. Lastly, I'll just leave this list of type-related improvements I'd actually like to see: * Make is_object() return true for IncompleteClass. This is just ridiculous. I care zero about the theoretical BC impact. * Make gettype() return 'resource (unknown type)' instead of just 'unknown type' for closed resources. This makes the output clear while still leaving the closed resource distinction. * Normalize error message. IIRC currently our type error messages are really weird, in that they use terms like "integer" which are not actually valid type hints (or have different meaning). Fixing this doesn't even need a proposal, just a PR. Regards, Nikita --94eb2c1461fad53067053726d810--