Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108599 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 43237 invoked from network); 15 Feb 2020 16:52:30 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Feb 2020 16:52:30 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F40D7180504 for ; Sat, 15 Feb 2020 07:07:22 -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-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (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 ; Sat, 15 Feb 2020 07:07:22 -0800 (PST) Received: by mail-lj1-f177.google.com with SMTP id n18so13939282ljo.7 for ; Sat, 15 Feb 2020 07:07:22 -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=OHXxkYt8w31CtO47adz77NLJIrnqQ1CUjWiVZFxGBfk=; b=aQDkAvTJuIcMQjsaSTSka3c3UBU8Vu2mJEnDYrSFZR4lmvfdAfX/ma4QDrKkOEIvah cAAD3WDDdqmGBwGeuqyG/CpPLf/UAGlEiGpd3ClTMep9xDhtaCmygQfNHKs0lwCd+si/ T/YvTGfSeK13cZkn77K9Py6aC+CCaFJhdG5Sch61MVXKUebHwOc6zC9dIhRBw7X+oeXz PzO02zmVPHXCSXIK41ZXwHYthfRJLEnMUXtRh4tAfHAnuPelL1W+o1t/Zmb8PaBJ68N5 7ZtVwxRkvuMDVi2Wg5HZnyQg5KNkZVFOy0wYZMlNvorcpPP7Ga3C7JyWs58zh94++I+1 kOtw== 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=OHXxkYt8w31CtO47adz77NLJIrnqQ1CUjWiVZFxGBfk=; b=Gyv1iYS0eqswVpLjs+dYqWnDV4ksBqWPHb34ArdtX37mmE5wZHWPgvYoXEyvvpskTn yRmkoean9eEXQp5XQRTVEEIbBomlcym8YcQBpIxZZxCAFKZoD009tyy5KNpRaxy/jTKr Ya6hoS8aBSXfoxdbt/VuAAmuKQaJXWaAZOca4R5B6jOyxUdGNby0lqIf9ikr6P61DZVD F3NRjAV07agGmnZfZA47jfzsMBpRoIb6HoU9Sxy4gD7TmkyVnURyQOri4vF6493sMy2t jdPoe/tpjJ6HMW42yhqkYAS3VwfBFGqPVNmK0Od8QeKMhXbeBpb6+acLXSK7Z7mw8Ot7 2xJw== X-Gm-Message-State: APjAAAVUYuJQyHQ7xPDdPYYBPYNB7qLp79GzrwsN2Rr0NnSGDuellBuB j7ibiceLHpPcuivQ3rVZ8zx4FvVkqtpd732PNa0= X-Google-Smtp-Source: APXvYqyqq/IPmKUIURQVkDFFemo9wzqczkkrue5h2BgVupZuEBWtvsKj6HTrvw35TugODUVxy2K17t4s39U6uX99uw8= X-Received: by 2002:a2e:22c5:: with SMTP id i188mr5234971lji.34.1581779237682; Sat, 15 Feb 2020 07:07:17 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 15 Feb 2020 16:07:01 +0100 Message-ID: To: Mark Randall Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000934170059e9eadee" Subject: Re: [PHP-DEV] [RFC] get_debug_type From: nikita.ppv@gmail.com (Nikita Popov) --000000000000934170059e9eadee Content-Type: text/plain; charset="UTF-8" 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 --000000000000934170059e9eadee--