Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115105 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 57707 invoked from network); 24 Jun 2021 09:48:36 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Jun 2021 09:48:36 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9E6601804CC for ; Thu, 24 Jun 2021 03:07:20 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) (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:07:19 -0700 (PDT) Received: by mail-qt1-f174.google.com with SMTP id e3so4401410qte.0 for ; Thu, 24 Jun 2021 03:07:19 -0700 (PDT) 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=7tn72zrx4CT7MmaWWXCdei8V+7fSUVBoz3cXXJ/SErw=; b=ZcKL05vwqy/KU1R+Vhlk2BgK5x+bh3mfBp8Qa2eAlfTjCPenGpqWHL7X4ci7ACKeWr gErh8nhsuALhjfPijvuJlTy25k6WpfDi9GyK6U+MmD3NMAbTXpJ7IOMFSOYH1XCckWnP fq7eyaP3VtcVNH7dP+yetilCtrfr5ZIJDwTdFH2k+AheozhS3KFY2bNcukcya0RYAXE+ p0ZlLkxOX/5fz20wFW5ZEOlYHzylV4dJWrW/S9PPrGQJ1Z1rI4CVeYK0z7omzH9cplnd M++nnlW7ztvz+n/UoL+c/2Ir7vhFhcBj546fArxKIhbfRC+FSRgvkOsRZZzRdosSSCSY 5ToA== 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=7tn72zrx4CT7MmaWWXCdei8V+7fSUVBoz3cXXJ/SErw=; b=U68IqqY5/dxWxZcuVartQZ8cUiGSsSrsH8moPw11KOhclNKYpk2e+0qxPL52CgicBN QEsp0XN/x/gNhpf6gz805377GIFH4HDuj6hlDHcY1CW0AP3fu1gP/cJw49LquYYZrgBk C8j9o/q2sae7FE/BlDV3GzzJQFN0272ndnPfClIGBR5tw0/6a+bbxWTiOPEg6bOiFTJQ 3MB9esMRm0SBfyqywRv2+GKyjQrw80QXnHLNntm8OPO8qAXn6VDhhMLnQB4zPrxpr2vM AITl/pbAY5tXpV3ija+S6X1eL+ZYZMHRpmT7V4xU+cH9MrIN/7e/YejobNWIPItr3UlV G30Q== X-Gm-Message-State: AOAM533ZY32GUQApOYluz8Zi7ABvFvqjaKMUkyEMAickcU6U/k0QyRWC TrgMydrV+emL0vAQZEmRy+BZjORmoioVDFVS4fw= X-Google-Smtp-Source: ABdhPJzhXyLDveIHULB2XKkmaBVcDaBl43APa6FVZ3WhUHUmB8/LR+9v2boiV6/p4SMRy4S22SCNnz0E0TmPGHswfs8= X-Received: by 2002:a05:622a:11c5:: with SMTP id n5mr3991766qtk.277.1624529237427; Thu, 24 Jun 2021 03:07:17 -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:07:09 +0100 Message-ID: To: Stephen Reay Cc: Scott Arciszewski , Bruce Weirdan , Craig Francis , Larry Garfield , php internals Content-Type: multipart/alternative; boundary="0000000000001fcb6c05c580309d" Subject: Re: [PHP-DEV] [RFC] Name issue - is_literal/is_trusted From: tekiela246@gmail.com (Kamil Tekiela) --0000000000001fcb6c05c580309d Content-Type: text/plain; charset="UTF-8" Hi Stephen, I believe the idea was for dynamically generate table names, or numbered tables/columns. E.g. function getTable(string $table){ // is_literal check here } $number = (int) $_GET['tableno']; if($number < 0 || $number > 10) { throw new Exception("Invalid number"); } $tablename = 'table_'.$number; getTable($tablename); The number is concatenated to the table name. --Kamil --0000000000001fcb6c05c580309d--