Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115106 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 59713 invoked from network); 24 Jun 2021 09:57:37 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Jun 2021 09:57:37 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 99E491804D9 for ; Thu, 24 Jun 2021 03:16:21 -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-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 ; Thu, 24 Jun 2021 03:16:21 -0700 (PDT) Received: by mail-lf1-f51.google.com with SMTP id x24so9287387lfr.10 for ; Thu, 24 Jun 2021 03:16:21 -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=P6s9F7FYCwKRKlFeMsxv50vW6CxjA5f3QnJkG8eVX0Q=; b=XYas2Nd59hz9ObjdpixYuo1fDRbTusMdnRP+kAjY1LDTlJTmZDMsbYTKMTfGtk6w71 f2RY/Pmq0LbWvTBCHFOuGiVzEXnLk7FiJkJxOt3qe42BeyLvMSShQv777Z7zbqmizuKX E46n37kBZRRe0yaKJF31s4oCB9c1Vt7ZIMN8Y= 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=P6s9F7FYCwKRKlFeMsxv50vW6CxjA5f3QnJkG8eVX0Q=; b=SCfJ6bcDOztZiqlhrq3+22l+Ev8BAtMGTJYKo1xKuZBzhu5x8dwf2EfNmET4fhbM85 rKyXVS/P/rO0Tg2Vnc8RYhyvCMedjgSgdS/CGwqzFsDN13THt6e5Oc+tu6qZrt5X4M/W GbAojMBDgrCmt+eYgvb3p7XIQe09A65gDDY9lXP0KvfM70pN9xDNHIfRGiEZ1QuJom7x E4KZNrMRFgAfxAXTCZ/ATH2v/LMmWCDrClJocXNcL5BQU0FvAK3n1EVwhbR8P2rw+Ku5 jHNfQsB2EIDvlsbF3xlxVEqI+oTQcDE0vd09Mf7KA78mWxDwAm9U1Z1I+xy7p3/KVW8P VVJw== X-Gm-Message-State: AOAM530YyLoa9o4YHz3g0PGe156edVqKgtf0Bnj4HrD7fvsDUhQ4YUzj CQkV+tHYMfCE8npXlaPWspSW0YwK4socLZdr2i1SEnDfD0xUcJp8 X-Google-Smtp-Source: ABdhPJxlusv9zD83t9B5KpOWbwhaL46wH/WCMmohghkBlLkNWdsBdbH4gt1SH7m6dYv6LrItrP+egU5qUI2naGMTTNk= X-Received: by 2002:a05:6512:3d0a:: with SMTP id d10mr3295397lfv.143.1624529779790; Thu, 24 Jun 2021 03:16:19 -0700 (PDT) MIME-Version: 1.0 References: <03f7955c-69a8-4841-9245-449d7851e207@www.fastmail.com> <95D16F2E-E9DD-4964-A0E2-62E1FB0D976B@koalephant.com> <4DE5E2EC-26D6-4D2C-95A9-B843B440EE87@koalephant.com> In-Reply-To: <4DE5E2EC-26D6-4D2C-95A9-B843B440EE87@koalephant.com> Date: Thu, 24 Jun 2021 11:16:08 +0100 Message-ID: To: Stephen Reay Cc: Scott Arciszewski , Bruce Weirdan , Larry Garfield , php internals Content-Type: multipart/alternative; boundary="00000000000073a79405c5805037" Subject: Re: [PHP-DEV] [RFC] Name issue - is_literal/is_trusted From: craig@craigfrancis.co.uk (Craig Francis) --00000000000073a79405c5805037 Content-Type: text/plain; charset="UTF-8" On Thu, 24 Jun 2021 at 10:55, Stephen Reay wrote: > but still I have to keep asking: Why integers at all? > While I'm not a fan of this approach, there is a lot of existing code and tutorials that use: $sql = 'WHERE id IN (' . implode(',', array_map('intval', $ids)) . ')'; $sql = sprintf('SELECT * FROM table WHERE id = %d;', intval($id)); Craig --00000000000073a79405c5805037--