Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94640 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41365 invoked from network); 22 Jul 2016 20:21:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jul 2016 20:21:23 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.179 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.161.179 mail-yw0-f179.google.com Received: from [209.85.161.179] ([209.85.161.179:36230] helo=mail-yw0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/89-24343-24082975 for ; Fri, 22 Jul 2016 16:21:23 -0400 Received: by mail-yw0-f179.google.com with SMTP id u134so112782414ywg.3 for ; Fri, 22 Jul 2016 13:21:22 -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=TbeoihEGmTCUH7nT3F3aER1HwzU7/tXVikLl6Au/k0w=; b=LGtkW1fk4KY4GTjlhTx8UWbt0JDPeyvxjGLNmkZLXh+x1ejcJOunodbU3yJgBdEnsL ocSQHDj4JsyqE2hz7GCsqP17zoSrvSzWKMgSgkv/p4Q2Rz5nypHyO0BCa4VHshFJs+/1 Vp+4czeV783f7esLzxJYSRWgy2+QkMWK1yR+zwdLZZ4/fHEjMCXpjLWJzc3cP6BcFOmN 3eijtlIuAc6gbTP5j27lg1oG8PohpISy6LvNuXZ49t9oLYlAXVlUu+q+eu1ZXRsUKwhF x9iGYD/XOED6id1xdGdJ/RbEsXcjV68HDf2qMHjdG9Y+lCITYHTQXmB8JK/0kZgxwH6L dWbA== 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=TbeoihEGmTCUH7nT3F3aER1HwzU7/tXVikLl6Au/k0w=; b=mzQoS49uXeRGmNAyFuVpXhZnUnJa4FP/Rh1gBBhRxcqpim0c4cuwicC5oe+e9+OhIp H2pYy8UQucJYJoOaJay4PjqT89HKE9QiktxpoIecUqu8gLg88Gt56nVNbbv5q5e1jP1v R9zNtuHzpRUt2VzCrTHFKikGj0YD06z/FvEQd16VEP2cIW4CZQ3eqEKkklicRrKXaFQc OddNWxGvDErTuIzuHt1oC5g/IkvoN4G5Uvua7O9Q5Cb+5ELL/UZ7fmYWNFPcTEkU7iGt Ytpq/TEl1BIKaGjFh8RodgSXVWIE8J8YiPin6YdmI0Bbvac0KhlgNiQdn8jfHL68uAq/ C6kg== X-Gm-Message-State: AEkoouvRFGSYAwalAHM1rlY1WDOFYYdbX2ZJMYwl0y5Z+xq9GRPsmGBCDG7Ch1/MOwrRj3arZj64Rjquqq6tbg== X-Received: by 10.129.177.129 with SMTP id p123mr4980135ywh.109.1469218880180; Fri, 22 Jul 2016 13:21:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.131.129 with HTTP; Fri, 22 Jul 2016 13:21:19 -0700 (PDT) In-Reply-To: References: <7716d180-2365-efc9-e9b3-9fe0998e273b@fleshgrinder.com> Date: Fri, 22 Jul 2016 22:21:19 +0200 Message-ID: To: Stanislav Malyshev Cc: PHP internals Content-Type: multipart/alternative; boundary=94eb2c1461fa735b1305383f2dc4 Subject: Re: [PHP-DEV] [RFC] [Vote] var_info From: nikita.ppv@gmail.com (Nikita Popov) --94eb2c1461fa735b1305383f2dc4 Content-Type: text/plain; charset=UTF-8 On Sat, Jul 9, 2016 at 12:19 AM, Stanislav Malyshev wrote: > 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. > I've created PRs for both of these: gettype() on closed resources: https://github.com/php/php-src/pull/2022 is_object() on Incomplete_Class: https://github.com/php/php-src/pull/2023 Unless there are objections from core devs I'll apply both in a few days. Nikita > * 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 > --94eb2c1461fa735b1305383f2dc4--