Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108597 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 37232 invoked from network); 15 Feb 2020 16:18:28 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Feb 2020 16:18:28 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A687B1804AB for ; Sat, 15 Feb 2020 06:33:23 -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=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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-io1-f46.google.com (mail-io1-f46.google.com [209.85.166.46]) (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 06:33:17 -0800 (PST) Received: by mail-io1-f46.google.com with SMTP id z8so2217664ioh.0 for ; Sat, 15 Feb 2020 06:33:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=7Wuk9ul0V//dJlZT9Z1cjTcH+FCtcWOxOibGyV5KyG0=; b=fVMlaFnOpfhT1Pxcj0WKZyPkXy7NMpZWU5TmVeekW8WKab5LbD/FpQq7PeoKxt5UXl O7vK1ZdG64/U9zFfeUqknT7H3szbJKMFbeXbtWH0W/hck/IWhicv0G9i39FQ83K62Pcv +H32VZfKarpQgaTLZIwuRgxmsGc6YGv90a0LilcFXHvnKnBR8sfGNf+VpviDjYME0bwY YyTaye/9UZ+2nqCS66iTjz6dTGQM4n8lxtfJW6P0TsYnaec4sOD2Kspr8s4y7xx7yFjx fq3pjK25H82hLVBI3VtOAAOExnEIKW1FmAx2NNYzMN9TnOji7yafCpRjpOQGI5Y4EfkM iKaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=7Wuk9ul0V//dJlZT9Z1cjTcH+FCtcWOxOibGyV5KyG0=; b=gHerFg1R4qUmieMA4RWO8iP7evcK44/fhjR4v74Wmx3MAqOc91WnAGD3GM/dh8Emg2 f8jYdBIPPl/Pwoc8Oda/JGefpygVavm6Yy08wADwGAZVsQWDmpinSeWk9QdSqTGPQ9ex ZrHlMTeGtxQiZLnlU72/AcyVg9n0EXiK2AQaDyM6b6ZflRe+yH5wauYsXzN3UTEPrwRC qnRebayLPrYq6v40b20fSqjyc6xGpqYJ6w/U+d4AHLl5s5Ymm0yG7kHPqSxet9rSToa1 SZZwC9axBwpiNhMQRb9x1lgGvNYPJlH5Egg7rxRp0paHWR/dWj8afeeKIfECk3FkE/MC YeRQ== X-Gm-Message-State: APjAAAW+UX95rWRK6GIEMgzRnf8dvIebVbd/9H44RYXO/kEvcZ2z5NtI aGcisTfbjplCWCjYQ3/6qlavJz+nNHTTk6QFJZ7NLrlQ X-Google-Smtp-Source: APXvYqzSOp6Jmz+DIErJFdyKHNiM94CWbWeNigw0/a2R1ag0Vz1cX/xuJNr+CM1+S/ic+FWpGzpwU+K1l10QyWq944E= X-Received: by 2002:a05:6638:3:: with SMTP id z3mr6507600jao.65.1581777194795; Sat, 15 Feb 2020 06:33:14 -0800 (PST) MIME-Version: 1.0 Date: Sat, 15 Feb 2020 14:32:58 +0000 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Subject: [RFC] get_debug_type From: markyr@gmail.com (Mark Randall) 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