Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95212 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12934 invoked from network); 15 Aug 2016 21:17:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Aug 2016 21:17:06 -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.171 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.161.171 mail-yw0-f171.google.com Received: from [209.85.161.171] ([209.85.161.171:33703] helo=mail-yw0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/8C-36656-15132B75 for ; Mon, 15 Aug 2016 17:17:05 -0400 Received: by mail-yw0-f171.google.com with SMTP id r9so33191261ywg.0 for ; Mon, 15 Aug 2016 14:17:05 -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=UINfvMt7VdTtDJMR7aQyXmOxSWChEC8tHj16sfijQjI=; b=nSEt+xRLzJyHvuUZZRhUnSFaR3+zQxM6Td42HHbN3ZeJ9hKjpg1YuTIOKwWSi4/YbH 5t+81AaliXz+X62QiTKUjotYMgFH5WQWa5Lxb0UwGLy6Vyoep8JxVBpxqiyyktoNvZVl A63wZjMhsk1nqkm1UsfUN8SRB2Sn7afpXgaUj24b6sVYWd95gSnBTzvkU2kCtbP0t50b CcnZ+zFKCz2Xldn/SyKKQ2N2mZOqw6d5FmC3wkr57F2u4ASrT8h/EY+M/gZVT8UjKrL1 xEUbdhoNs2casOdVawAvX0Xt8PZn8wF5DdzVHzbZmOxWbmW0TYJgqi9fGXGz9GHWFcpd idDw== 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=UINfvMt7VdTtDJMR7aQyXmOxSWChEC8tHj16sfijQjI=; b=NvdkfjAfkH165/ZwpsuPNnUPdD8yAYlUJn1Z64IM+3tBtYly1YsAI9F5Zofgm4peS/ uJfn5PNJWhQx9t8w4jbTzLnvPRMDWHr019L2WruF7ufYn3a7QK0wdVdn2oiJHisfAbNR QtlTxIFzkT7//yveMWjdm+U3AocCZ8QiZMkDXepHpfj9h3dNL3jYYZdTXiwsZJQ9wvdY Jp96i2j09e+eX8qUDQ4HOmYqwJhC0xOah1dzOnvROmqUJN8/o64WdEmBKsHIT0bnG12d 2ayNJcOZZf3G6n9ujD4dQn3JJrI8HdIikL+0avC+GxD82Dg2kzBmQno+HgBINWLksmAO V+mQ== X-Gm-Message-State: AEkooutQ8/gcJSzII5dDR0PhM+wz/kxC2W7my8YlsTYqWbv0VcecvuQwSJlwfrS5caccTfo+NH/HkGdvdn1/sg== X-Received: by 10.13.206.3 with SMTP id q3mr22640072ywd.139.1471295822651; Mon, 15 Aug 2016 14:17:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.131.129 with HTTP; Mon, 15 Aug 2016 14:17:02 -0700 (PDT) In-Reply-To: References: <7716d180-2365-efc9-e9b3-9fe0998e273b@fleshgrinder.com> Date: Mon, 15 Aug 2016 23:17:02 +0200 Message-ID: To: Stanislav Malyshev Cc: PHP internals Content-Type: multipart/alternative; boundary=001a114dbd54de6443053a22c058 Subject: Re: [PHP-DEV] [RFC] [Vote] var_info From: nikita.ppv@gmail.com (Nikita Popov) --001a114dbd54de6443053a22c058 Content-Type: text/plain; charset=UTF-8 On Fri, Jul 22, 2016 at 10:21 PM, Nikita Popov wrote: > 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 > As there were no objections, I've now merged both changes: https://github.com/php/php-src/commit/34824b70f8e72b200d77957145bb61883b03322d https://github.com/php/php-src/commit/89f63779711f34d87c2464ae13965df868d6231f As I forgot to handle this earlier, I went with master-only. Nikita --001a114dbd54de6443053a22c058--