Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118929 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 51021 invoked from network); 31 Oct 2022 18:23:09 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 31 Oct 2022 18:23:09 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CC7411804AC for ; Mon, 31 Oct 2022 11:23:08 -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,FREEMAIL_FROM,HTML_MESSAGE, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 31 Oct 2022 11:23:08 -0700 (PDT) Received: by mail-wr1-f42.google.com with SMTP id h9so17209507wrt.0 for ; Mon, 31 Oct 2022 11:23:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=n6Jdgi0vOq1N3IMOSMHNYsL/leotm5tBfoRa7B5yPuE=; b=EGxqZNIlLqA+QDIXODisLSTeySBB3QRrNxko0iiSvjm0aCYyObYvxjoMGOYqHlZ/VP xtUOBwjqXKDpxtO347MxJliTTQvU2nBK8xqejhFuPZ3YSJ7VOKSczzhj5VOK5Tk4gzGA zK3kh0Q/dXJHirhaAyWGVZYt4Y3dwba8SVlkYiUDG5ASI/XBLJqrVQoxCCZWhoqCT5Ks MMunSjT2R4mhRj7S5YkYps2F3fDBRwkG4nkBGrq8K/uXMPn6WIDT4dxDn5ZtQ59Z8IwQ WSMsJaHb1AbTDlBOdUsy+2n8EH6+g3IVRUa6k4vfJfolVVEzhQ/vgnNk9AM3ulQoy4Hn Jk8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=n6Jdgi0vOq1N3IMOSMHNYsL/leotm5tBfoRa7B5yPuE=; b=WaiJN5YwzZJmag93JuT3UjqCsTeZm4hGDo6mAg7WzbQQf8q126mCFb0j1/eLh+hfZE 89YPh2cQFxjb8iJJlIdD1nW4mckzBECe4jHWPv5gJw/j23mFX3R/NEeG3VxeZObjeY5M T5QGHKR09I3wz0C29o+OYNQXYB09vPk4QU5p89TQkuODyDpyLczZYIAEMN6nOdX+qRnX +5v0OegOSzdAsliYKiy4K59/UGuAsUjUOH+MNcvtdmr4QMVp7bkfeUxNJiZruOD4CbCp wIm501GZG71Izqd+Phr/8vb7gJs3vtkUf8T490zdoZ5ctItTxVJyAPm874gpZ4VLV4od tXMw== X-Gm-Message-State: ACrzQf0aXnmvAd8mxuInWA9skohVzFztNOdAIQ1IKdVz2m56cH5ePkrM ERVY36Eg7pV8Hl8uYE3uG9xEicApHLw= X-Google-Smtp-Source: AMsMyM4AYBspLNIwnWBh5mJqYHvcf3/wgE86D9ymxjAZb09SaYHQbgxScyhNErNzjtZQmq8Tnn1jGg== X-Received: by 2002:a5d:4484:0:b0:236:574f:2536 with SMTP id j4-20020a5d4484000000b00236574f2536mr9331394wrq.7.1667240587256; Mon, 31 Oct 2022 11:23:07 -0700 (PDT) Received: from [192.168.0.22] (cpc104104-brig22-2-0-cust548.3-3.cable.virginm.net. [82.10.58.37]) by smtp.googlemail.com with ESMTPSA id bl19-20020adfe253000000b00236576c8eddsm7821018wrb.12.2022.10.31.11.23.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Oct 2022 11:23:06 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------TGDGfoBJNrcZf4x11CCil1a1" Message-ID: <8430c6b6-7392-dc74-da19-e4e447fb25db@gmail.com> Date: Mon, 31 Oct 2022 18:23:06 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Content-Language: en-GB To: internals@lists.php.net References: <42A5DAC6-253E-478D-808C-36690FA88315@gmail.com> <46b289c4-9255-ad66-3410-46b19fc91bf6@gmail.com> In-Reply-To: Subject: Re: [PHP-DEV] Microseconds to error log From: rowan.collins@gmail.com (Rowan Tommins) --------------TGDGfoBJNrcZf4x11CCil1a1 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 31/10/2022 10:16, Craig Francis wrote: > On Sun, 30 Oct 2022 at 17:42, Rowan Tommins > wrote: > > In case of any confusion, I think this should be configurable as > "include microseconds: on / off", not configurable as "enter date > format". > > > > Any reason it can't be configured to use ISO 8601? That is really a separate question: ISO 8601 actually defines a whole set of date/time formats, and allows any fraction of a second you want, or none, or even omitting the seconds completely. My main point is that I don't think it's necessary to complicate the error handling routines with handling for arbitrary user-supplied date formats; a single on/off ini setting would be a single if statement in the C code, and only two possibilities that tools would need to parse if they wanted to support both run-time modes. I guess we could have the setting be "use new date format", and control both the precision and whether the format is ISO 8601 compliant, but I'm not convinced of the value. Regards, -- Rowan Tommins [IMSoP] --------------TGDGfoBJNrcZf4x11CCil1a1--