Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94437 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77416 invoked from network); 8 Jul 2016 22:20:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jul 2016 22:20:07 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.175 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.161.175 mail-yw0-f175.google.com Received: from [209.85.161.175] ([209.85.161.175:35317] helo=mail-yw0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/57-18622-61720875 for ; Fri, 08 Jul 2016 18:20:06 -0400 Received: by mail-yw0-f175.google.com with SMTP id l125so48121019ywb.2 for ; Fri, 08 Jul 2016 15:20:05 -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=vJyPxrW71xpMBIDVnWKkVIdhrDBQHxqD0+y2L7wqeBo=; b=ieUcvwsSsg4gp6gF9PgYFv3TzgTxZbDp6uboS6wOqH0NtVtuxznacL3eOpegWkrHvv R2wmvfykETlbt8lbvnLRSVMXVveRnNR1I50W7pHmtf/n9jFeqt66vb3/bNRj38eqmjLh Sce8HQh+0wanmmhop+chb6RQoV4sNAK5mIQoQkXOZvpd6Up2tA8Jnb78f3gpkwhynlqZ 5eAJpyjMFHzmneTwtZ0EvF52dg4be4JIWp5RTRW0zMuoJkerG5Bu+S2ZpisaxwcESahJ 4jJ0W7BeNtW5rSSYJWzRbLiVapBc0v5D4VxHANnQtTMvJb9MMwUfdc+aWexDXUMlHDcm IJGA== 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=vJyPxrW71xpMBIDVnWKkVIdhrDBQHxqD0+y2L7wqeBo=; b=ftx8S+/kNuOSoR0iD2kPehVqcPcpu9yMd0e/RuCrL40vtcvboPWOy7mR9ojLT9hyYv X4UYqqJJiysPjTJQrCg9HGTkgzdVD4Uc9nShZxmVa1vwP3e+Fof2rP3QGg1zqBeS5SRt TBSo+yDwyszlLHFR3NVP0kioyJDnAl70apYqxFLk0eygmGTAolpWwXSfUNxFIbICa1rS i6NsPhICK3OdwR34DbBChhRgeVAwjoVSbuQF8DM95vS8/JGcKT3ynafwxFfxagZ3lVD9 l/qXWWUNGp63lrBZT7DSLso46Wyu4AyoNE03v590VLutzQfrR1AZDmcMeoBG89RndtBp 6bjw== X-Gm-Message-State: ALyK8tJYzn6kmmavBv9Mvfb0PHalus3VpSnt7zypEEzTlH1l4ZoAA9kdtyBzahdnPFvcMw== X-Received: by 10.129.117.133 with SMTP id q127mr6491813ywc.75.1468016402791; Fri, 08 Jul 2016 15:20:02 -0700 (PDT) Received: from [192.168.2.102] (76-220-46-95.lightspeed.sntcca.sbcglobal.net. [76.220.46.95]) by smtp.gmail.com with ESMTPSA id z189sm5180156ywz.21.2016.07.08.15.20.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Jul 2016 15:20:02 -0700 (PDT) To: Nikita Popov , PHP internals References: <7716d180-2365-efc9-e9b3-9fe0998e273b@fleshgrinder.com> Message-ID: Date: Fri, 8 Jul 2016 15:19:58 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] [Vote] var_info From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > 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. I have no idea why it doesn't do so. I'll try to dig up when it was made so and see if there's some explanation. > * 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. That makes total sense. And BC impact is rather minimal given that closed resources are useless. > * 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. Right. But ensure tests are fixed, that's probably where one has to spend some time on cleaning it up. -- Stas Malyshev smalyshev@gmail.com