Re: [RFC] Name issue - is_literal/is_trusted

From: Date: Thu, 24 Jun 2021 11:09:19 +0000
Subject: Re: [RFC] Name issue - is_literal/is_trusted
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.internals 
Request: Send a blank email to internals+get-115109@lists.php.net to get a copy of this message
On 24/06/2021 11:35, Stephen Reay wrote:
On 24 Jun 2021, at 17:16, Craig Francis <craig@craigfrancis.co.uk> wrote: On Thu, 24 Jun 2021 at 10:55, Stephen Reay <php-lists@koalephant.com> 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));
Yeah you’ve said this about a dozen times now. Parameterisation exists. Query builders that do this already using parameterisation, exist.
I think it's clear that a conversation is going round in circles if you are complaining both that you haven't had an answer to your question, and that you've had the same answer too many times. If you understand the answer but disagree with it, there is nothing more to be said. Unless you have a new point to make, I think it's probably best to "agree to disagree" at this point, particularly as the discussion seems to be getting heated and personal, which is not fun for anyone. Regards, -- Rowan Tommins [IMSoP]

Thread (39 messages)

« previous php.internals (#115109) next »