Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114947 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 79617 invoked from network); 18 Jun 2021 11:05:18 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Jun 2021 11:05:18 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A63BB1804C9 for ; Fri, 18 Jun 2021 04:22:32 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-Virus: No X-Envelope-From: Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (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 ; Fri, 18 Jun 2021 04:22:32 -0700 (PDT) Received: by mail-lj1-f179.google.com with SMTP id q23so3070969ljh.0 for ; Fri, 18 Jun 2021 04:22:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=craigfrancis.co.uk; s=default; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aqB0PYkRCNESpSXr2cJBGIqVkXR9C8YD35BbgnVC2iQ=; b=FzNp91aupVIOpBD7K8gBnnOwPYk6UG6BybUAZcmoYdn2toKhLnG7o2VrHPY97Sc5wL oqP1qAzok6wAyI31ctn2fbFMbkogvXfyte8ZbbGw66/scIiLG05B0x9NxGzisnKBuYtK EltNK429Eyc8MXZ1kUzHjC+eaU/axwPlPF320= 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=aqB0PYkRCNESpSXr2cJBGIqVkXR9C8YD35BbgnVC2iQ=; b=C8kOtepKHSFf+g2BXgV5+LtApobA7myuVp4wgycyRe6ENs9fUAGZjkj9fgSkKRE6J5 ZBcJsNrf46VYDBOyv6SLSMgJVlvu86UzaDre0/KPI174w/1tqYBNJt3Qfzfk9sBeibQY FAIk3x9O7G0kKl45zgNSaIUze+kNe4GxNxJToiC0+rWrUBEOPwiHfkGDgK88p65zMU/b 4CKiLyl4mbj/BmHX65/0qNc+uUf41HSMGrO/LAqqgTQC3ae/dL2q40ltzmrNJZbIQDNh P8BenfYq/yCbPQb1P+EHiCKqU9cxrJRi/qiTUTdNgRV8JN3LQg76YN3AYHN3bQt3QnN2 0BrQ== X-Gm-Message-State: AOAM533kxiLFoz2VXqDICpPgAuzQdYtMOyTZ2yY/DS4waG3Oy7i/7YLK i6yrCpgOVF9778mHuQp51CLMEEuPXn+wfpSQNA5lMg== X-Google-Smtp-Source: ABdhPJx4OVh5+3lSKTgKpr0dADm9iRcrLGKrDm4d/aHqNpNqDr2JDyiw9IUts5CZTwqpEs6oDy8G30EweuzRPZ0CShg= X-Received: by 2002:a2e:8147:: with SMTP id t7mr8873666ljg.241.1624015350654; Fri, 18 Jun 2021 04:22:30 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 18 Jun 2021 12:22:18 +0100 Message-ID: To: Guilliam Xavier Cc: Pierre , internals@lists.php.net Content-Type: multipart/alternative; boundary="00000000000015fe7305c5088a96" Subject: Re: [PHP-DEV] Re: [RFC] is_literal From: craig@craigfrancis.co.uk (Craig Francis) --00000000000015fe7305c5088a96 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 18 Jun 2021 at 11:45 am, Guilliam Xavier wrote: > IIUC, with the addition of integers, the function will return true for e.= g. > `'SELECT * FROM foo LIMIT ' . (int)$limit` even if $limit doesn't come fr= om > a "static" value (e.g. random_int() or even `$_GET['limit']`) Yes, that=E2=80=99s correct. Supporting integers from any source helps with adoption, and we cannot find any security issues (it=E2=80=99s a fairly small change to the RFC, and tha= t prompted the new name, especially as the original is_literal wasn=E2=80=99t perfect). --00000000000015fe7305c5088a96--