Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109190 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 10288 invoked from network); 21 Mar 2020 23:00:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Mar 2020 23:00:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B6B151804E2 for ; Sat, 21 Mar 2020 14:23:49 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, 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-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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, 21 Mar 2020 14:23:49 -0700 (PDT) Received: by mail-lj1-f178.google.com with SMTP id 19so10346278ljj.7 for ; Sat, 21 Mar 2020 14:23:49 -0700 (PDT) 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=2xUalQD4UACAsGrmidnb8uFqtagJNmqoJtXy44jl/T4=; b=VhOkfgZg6cakU0YyvBF9nbt9Gs6uEqyq32G/5QSjj9SsDQeY6kzQ0PWwoo623UkhSR L9gWtsSdlxbQO+vkyKsaLYQyp2X/kz5H5vT2FYw/QPxzh6dP2eq2PwyoQZo22FOLTSAr MzdnM+UJ1MoTdqVA7t8KU49ypVbmdOCmEXf+/0qAG29mvJ1h3SVmO6PlBFNdpxuhFuBN y1ylRG7IPyiyYLYF7VcSj2XYvluR6hog5m+eNOaCLKPe4W4gTMQX9g87AUpeAyBuotKA wI0wv1Q+43sKbBStVrTgHrlkXvzR82JiLom5ui6X39J4A0d/cluPnUqpT79sSJmnN6y6 wKyg== X-Gm-Message-State: ANhLgQ0NX/ibGOqBFcJYeeI1P9fYciGceaVqbrzJelPJmHhoi6m1nR3q T2YLce3zn4ps8op5w2FNVQWlwK26QcvcaR9EwfEktMw3 X-Google-Smtp-Source: ADFU+vvFCI+0cEwqzivsCs04xxTpJX+Q8vjLturP0/8x0io25f84hveGy4foIMVNR7DCF+TAMMmyISdbr6D6kHz++c8= X-Received: by 2002:a2e:8513:: with SMTP id j19mr2696528lji.27.1584825826835; Sat, 21 Mar 2020 14:23:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 21 Mar 2020 16:23:35 -0500 Message-ID: To: Craig Francis Cc: Ben Ramsey , PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] is_literal() From: jakob@givoni.dk (Jakob Givoni) On Sat, Mar 21, 2020 at 3:26 PM Craig Francis wrote: > > As to the name, it's to work alongside functions such as > is_int(), is_string(), etc - is that a good enough reason? I think it could cause confusion since int and string are value types, - literal is not a type as such, it merely describes the way the value was created. > I'm under the impression that PHP already defines these as literals Does anyone know if that is correct? Does PHP remember how the string variable / constant was created?