Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108638 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 42916 invoked from network); 17 Feb 2020 10:27:33 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Feb 2020 10:27:33 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 65C871804D9 for ; Mon, 17 Feb 2020 00:42:56 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 17 Feb 2020 00:42:55 -0800 (PST) Received: by mail-lf1-f51.google.com with SMTP id 203so11203881lfa.12 for ; Mon, 17 Feb 2020 00:42:55 -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=TWwzqUBI76bJU2YVmE1UTOznPBv31dYug6S363HWtGc=; b=Whcuj/0vb1PSXppdwvh1IJScAyet68Is42lqGihkTiU1bYi1RvCyXmu6VGmUpL6BI4 aDO7lHyQKVx+dYKoprG4OQlauIZJI24vzlDQgscwphBLuh+WIAfh989TYqUj65MEwa1J EPh1PVu6k0tVoSdpRlTUgx6z3z5KBkls1O6I7dGOHPx2DU3aeTtJXbcLBWT6Zqlvw5Zs IrnSfFm73VFhi1XF6Bw8G/+qQj0RMQNQs7nFiGpn1ontn1HuovKH+t1oGxfRO23ygH3X 3Qf3rFBK2OLOuCFyXcCfkSgZ1UGnsonfWrY5SIWAWQH2PwXZ1JXxoK3nVXUoNkWgHqRW CTlg== 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=TWwzqUBI76bJU2YVmE1UTOznPBv31dYug6S363HWtGc=; b=dC+AyMYM/S3eZ2CRNRc14YIbCjF2VemcAcvY2mTQ7YBM7+lmxfkpDuMC22uSJQ/rx5 xuMUCqrWW950diWU6hcw73dcNVUvFQN5V+pKY4HNjb/mRlYfIzbbv71bCb13MW47P3t/ /VkOvb7MMyH/EFmkm/lL3faSXQc8SPGVE9t228onuSj4BhblE1U1QpW6qtxDHpE+A4Yn 4IvNjDslR2eXN8OdiSdeCjW2B7bn+r/6p7GOui69f6b+FVQ+rp8ASh1eRUiH4ZWZL77v 8Ojw5PJ2HgsQvLxIp/XUA9bn2eUeGiQwVD0U7sy3s5jcNi3qzcZUdbSPS04JYVRcx+aE NRSQ== X-Gm-Message-State: APjAAAVy4OYdxB+owT0eOqRpFtv9WQSxHLdqZxk8loel3Wtg8KUCjzOK 4i5ppCNhTCHaGf8sCVZUErKVzbxzCycUmilieMQ= X-Google-Smtp-Source: APXvYqxRQsCQyBhq2T7uU9XjIza1XNDZjhETAGbstFEUm32/XqmbWIJiiB3gdSmexvANSVk16oNzDSPEgfBIsNRZAF4= X-Received: by 2002:ac2:4add:: with SMTP id m29mr7501914lfp.190.1581928973000; Mon, 17 Feb 2020 00:42:53 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 17 Feb 2020 09:42:36 +0100 Message-ID: To: Mark Randall Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000007ee2aa059ec18a87" Subject: Re: [PHP-DEV] [RFC] get_debug_type From: nikita.ppv@gmail.com (Nikita Popov) --0000000000007ee2aa059ec18a87 Content-Type: text/plain; charset="UTF-8" On Sat, Feb 15, 2020 at 4:07 PM Nikita Popov wrote: > On Sat, Feb 15, 2020 at 3:33 PM Mark Randall wrote: > >> Greetings, >> >> I offer a short RFC to add a new function, get_debug_type, which would >> return the type name of a variable, automatically resolving the class >> name in the event of it being an object. >> >> Unlike gettype, this function will return the true name of scalar >> types, rather than their aliases, thus get_debug_type will return >> "int" rather than "integer" etc. >> >> https://wiki.php.net/rfc/get_debug_type >> >> Mark Randall >> marandall@php.net >> > > Can you please add some examples for the behavior? Preferably the precise > output for all primitive types, for classes and for anonymous classes. > > Regards, > Nikita > ping --0000000000007ee2aa059ec18a87--