Re: [RFC] is_literal

From: Date: Tue, 22 Jun 2021 10:15:16 +0000
Subject: Re: [RFC] is_literal
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-115015@lists.php.net to get a copy of this message
On 2021-06-22 12:15, Dan Ackroyd wrote:
Dan Ackroyd wrote: If people aren't going to make using a non-literal where a literal is expected, be an error, the only alternative I can see is logging it. Please correct me if you think people should be doing something other than those two things.
Maybe I'm mistaken, but I'd imagine people use custom error handlers which report errors (warnings, notices) to ticket system or email or some other convenient place, so they don't need to read through logs. It should be well known that unexpected things happen in production. You can already have e.g. undefined variables or bad array offsets in a non-tested code path. Non-literal string is just one more kind of bug, it can be reported just like all the rest. -- Lauri Kenttä

Thread (69 messages)

« previous php.internals (#115015) next »