Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115015 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 41292 invoked from network); 22 Jun 2021 09:57:07 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Jun 2021 09:57:07 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DFF421804C3 for ; Tue, 22 Jun 2021 03:15: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=-0.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 ; Tue, 22 Jun 2021 03:15:21 -0700 (PDT) Received: by mail-ej1-f43.google.com with SMTP id he7so33617142ejc.13 for ; Tue, 22 Jun 2021 03:15:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:date:from:to:cc:subject:in-reply-to:references :user-agent:message-id:content-transfer-encoding; bh=hu+jKYfAXbiEw8kMj0dUTWKi13iLQj9CMMLPTfXFbms=; b=UhyygmE1yHO7Eibmce/Tg8CTVpsB/BWwDsVsD38raCmtUHUMuiPisYKAvIvaa+qb9i NbcUTrxLekQsbrPud8oTexjJ7CJm45ZrQKmDY7SfQ2nTuUY4QgWBLTzmSxSlITBZ8Bfw ZMeNngQeyNEHfdWksxVIntsiBUG1D8hSxcVPD9W2OEyD1lee5lJWxza3ECoWQ1TAh7ZS +UJS6SeoHaPuTHTKUWzHZl3Qmbdrq5lic0dKQJfG8nMPyLqHoBhxD+aoCRld2YWu8z66 7kdMTeqCxJ9Ry4HpP9S84g8+70cUwKUxKys10IwwdANNCPyL+C/K8A0fV2V2kXIsxdlP MXkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:from:to:cc:subject:in-reply-to :references:user-agent:message-id:content-transfer-encoding; bh=hu+jKYfAXbiEw8kMj0dUTWKi13iLQj9CMMLPTfXFbms=; b=J3mm2oHW6yCQsU9mLayY6b7kQjd6UnJDxgaEJ8NvXBcI4ZkvT6xeLCjpT5jWz/0Tcl goySTDtfhiq/TzCywyOPZoWYrnotbhNzsYt8D6bLzs3M5TGT+L3g+/PHXgerEG6dVy4r VsVKn6kIzZ9v85uvWXPWIAjAV+5XSYptFvI1Oxlsrih5rj99b1eMS4bpgPsSgb0l+HsC AM/ixngbn0455vh/pM2u5I7Z+nPLL0HvEU7cDiRf9MgKMZJvaEwT9qy8EgsDzLz8bioR nSrtcTO6xSM3pGgqN8yFjtYXJYvmvCx2pOVz6q9PChh2ASaN8roo5CqZ+UYrRzr9n2PO cq3w== X-Gm-Message-State: AOAM531PhQFtrI+fBiq4zbdRUrJxPr8qdVt9/q5BaC5wuYEYck+ae25b rlm0/0B5vT3AAltehKALJ00= X-Google-Smtp-Source: ABdhPJyfrsBWCPDlgmXO/2adbvXLURC2HOQn+xCzt8SK1uFqwR3ei7tI0BvfKko4G7EyPdVlWFzSVg== X-Received: by 2002:a17:906:dbcd:: with SMTP id yc13mr3085542ejb.161.1624356917347; Tue, 22 Jun 2021 03:15:17 -0700 (PDT) Received: from k-piste.fi (k-piste.fi. [95.179.136.7]) by smtp.gmail.com with ESMTPSA id u22sm11929561edr.11.2021.06.22.03.15.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Jun 2021 03:15:16 -0700 (PDT) MIME-Version: 1.0 Date: Tue, 22 Jun 2021 13:15:16 +0300 To: Dan Ackroyd Cc: Craig Francis , Joe Watkins , Matthew Brown , PHP internals In-Reply-To: References: User-Agent: Roundcube Webmail/1.4.11 Message-ID: <3be0f24a91d90a45ffb0c8d52ff540b0@gmail.com> X-Sender: lauri.kentta@gmail.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] is_literal From: lauri.kentta@gmail.com (=?UTF-8?Q?Lauri_Kentt=C3=A4?=) 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ä