Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120365 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 63928 invoked from network); 19 May 2023 20:56:07 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 May 2023 20:56:07 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D5D0E180503 for ; Fri, 19 May 2023 13:56:06 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29838 64.147.123.0/24 X-Spam-Virus: No X-Envelope-From: Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 19 May 2023 13:56:06 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 69F7632000EB for ; Fri, 19 May 2023 16:56:05 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute4.internal (MEProxy); Fri, 19 May 2023 16:56:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-type:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1684529765; x= 1684616165; bh=rQWkV2Y1Y6jP7atURb6tzHrIXoNI34szfsHLZxKJugU=; b=g xcOIpp71DnU18S1B3Upkzr1rbdQZZOx+Cembx5PtIABtCWYyIaREvHvZHK6qxF84 7Sux7B+UfsvKOxY6XaDEWkGishNJzH2PsqP0hyHNxx8+0W5SqtEVkds2PW+YpPE2 8coOHx5rlAZeBTnhAhXfvGejh83d6n/o3JVOzVGkS2oedLKOqGbQAzBSWkEGjD65 lGLJyknx4ZadTaelEc6w2HGVwxDjhKYXw4NK/SGlZ6Q7hkAYUD9OqPLCSlslI/8t b1FYeOaVwirPOWMifH2SrcK5fZrwwji0K0NcAeMqc9PmCo5UM74NJpDS73BTslSe /QZt9GCTgQ7vNvTKuGd5A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1684529765; x=1684616165; bh=rQWkV2Y1Y6jP7 atURb6tzHrIXoNI34szfsHLZxKJugU=; b=mq8BHqErLGdtVMdHiDHxWRjbsKzqP PcxKkYOTcUUX/rlpO3ZMJzaja6j7wAO75vQYYFGTq7APxhxzygpnLmvpxyy/KOr/ 2l8HjktX0P/iAz9beyZmRagKBqOcraQMkd0Xy46r607w8R6xMbGXe1dEUv78mlmI WTZI54/wt4x51Z577bNhjKER6fe+b0INToqjb2pwFJOBXpV4nO7jhUGmjAICJwsM tDsTG/AYNuD3ErqKLlfMxSdeMM2fGexN+b/KmehUxSfWFZ+h6EOBTJkpwJjIUFDv Qlzze+1fz9fom4avbHEL/h+mCFWWWaXgO6mFG/p6a0I7ILbt1Wy9Htrdw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeihedgudehhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfnfgr rhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtg homheqnecuggftrfgrthhtvghrnhepjeekuddtueegheeffedtfedtteehtdethfelgfek jedvhfeigefffffgvedtlefgnecuffhomhgrihhnpehsthgrtghkohhvvghrfhhlohifrd gtohhmpdhphhhprdhnvghtpdgurhhuphgrlhdrohhrghdpnhgvshgsohhtrdgtohhmpdgv gihtvghrnhgrlhhsrdhiohdprhgvugguihhtrdgtohhmpdhgihhthhhusgdrtghomhenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhih sehgrghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id B508E1700089; Fri, 19 May 2023 16:56:04 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-431-g1d6a3ebb56-fm-20230511.001-g1d6a3ebb Mime-Version: 1.0 Message-ID: In-Reply-To: References: Date: Fri, 19 May 2023 20:55:44 +0000 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] Deprecation of the formats DATE_ISO8601 and DATE_RFC7231 From: larry@garfieldtech.com ("Larry Garfield") On Fri, May 19, 2023, at 8:49 PM, Jorg Sowa wrote: > Hello everyone, > > I would like to propose the deprecation of the constants DATE_ISO8601, > DateTimeInterface::ISO8601 and DateTimeInterface::RFC7231, DATE_RFC7231. > > Arguments for deprecating DATE_ISO8601: > - outdated format, standard has been changed while ago > - incompatible with format ISO8601_EXPANDED > - misleading behavior for developers [1] > > [2] > > - doesn't support microseconds [3] > > - many misunderstandings in the userland [4] > > [5] > > In my opinion the question is not whether this constant should be > deprecated, but when. I know that the problem was discussed in the past, > but I hope enough time has passed already to touch this topic again > although of the BC nature. [6] > [7] > > > Arguments for deprecating DATE_RFC7231: > - error prone nature, the format never really supported timezone. I'm not > sure how it appeared in the code, but tests clearly lack cases for this > format. I'm not sure if it was missed on purpose, but with tests it would > be obvious that the format shouldn't ever appear in the core. [8] > [9] > > > It's my first proposition in the PHP Core and I'm not sure if I should > suggest it through RFC or normal discussion like this. If I should propose > it in RFC then I can prepare it along with PR. > > Kind regards, > Jorg How common is it in the wild? I am pretty sure I've used it myself without really thinking many times, which I suspect is common. Knowing how much code would be impacted would determine how we'd go about deprecating it and on what timeline. --Larry Garfield