Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120367 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 6227 invoked from network); 20 May 2023 09:38:22 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 May 2023 09:38:22 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DC8BC180209 for ; Sat, 20 May 2023 02:38: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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,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-yw1-f176.google.com (mail-yw1-f176.google.com [209.85.128.176]) (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 ; Sat, 20 May 2023 02:38:21 -0700 (PDT) Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-56186035b61so56438787b3.3 for ; Sat, 20 May 2023 02:38:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684575500; x=1687167500; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=09NO4iGLWG5y53wA13fAgyAF42CS7AyQ1Cl4ubbflKI=; b=hoJ8EJeKfkXm5dCmsT6x+NEzHJ2SNxkD03k7KgqxtnH3OdAP/ISaQHNPlKLtRA+pVq CBnwERPLxwWBFxX2dBDOpVjsGvNT/6Hvl91gCMInG1MOyRiBClOv8ugtF6HSy9jo9HAE ZiiI8uV773wDBBBzuJU9lCXDSZqdcHhI9523tPfDB5oAj4MWFpwdteCd25j7yU0gRgQw QYhnjHaUrGSOb0fwCqUSdFppRZtoF+8jHqztaTuI0dhwoX7w5fOslKhwRJMyY1x6yEQ+ n5BcSehBfFBvA4YzyTtrzR8lsrql19EENgcvfWQS5pX8nLR0Q3xntzvMFxPwLPYJxr/c TMHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684575500; x=1687167500; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=09NO4iGLWG5y53wA13fAgyAF42CS7AyQ1Cl4ubbflKI=; b=fIvOnkdwucaben1Q5CnCe4T1VKX/m3lWZfMByPoq0NqNrsu+1yAc1JTo37tjFGPSc1 aTuB+4tNwEBGG/TCzeqV88y/u05ngpBHutbP1gQWNFHdSTyDH/RaQ2jHAcL2Bt+oAdQw sCMQClt2NEoevpuWIgg5+wFio6FffJm1kJxwoEO1HuPzgBqOYlPLFy6fZF5gFbK9nJjn tcuTfgyb8MjbPfV4B4hYjgLEThCoeXpvhfOAjHSVvWM8gwUIFcIVttNUq26WYQkTw8lX SFKPXSkBiyc0wWJwOn9ZFXlda4yCSl53Q7I0+g/ujTCrHTzBBTJvkiD2FIJausXFjbqk EDHg== X-Gm-Message-State: AC+VfDz49kYOPdCCmuAr5wOdGq0aqIcTqidobm9g87fbbNiKJ5gNomeH /Lac9YoKf93ln13VaEuE0wAATP9TRqvYthoB8AXAjJ1bRK4= X-Google-Smtp-Source: ACHHUZ4ZJmJOfG99td4qvUhJywVkDDCUKrZAYigOqpfoCekvc7Vh98Xq8dbfNpzCuUUnzkfSvTkK+XsVHMNPaVFUNpA= X-Received: by 2002:a81:4f57:0:b0:55a:98ff:f075 with SMTP id d84-20020a814f57000000b0055a98fff075mr4931778ywb.3.1684575500483; Sat, 20 May 2023 02:38:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 20 May 2023 11:38:02 +0200 Message-ID: To: Jorg Sowa Cc: Larry Garfield , php internals Content-Type: multipart/alternative; boundary="0000000000004dbedd05fc1ccca1" Subject: Re: [PHP-DEV] Deprecation of the formats DATE_ISO8601 and DATE_RFC7231 From: divinity76@gmail.com (Hans Henrik Bergan) --0000000000004dbedd05fc1ccca1 Content-Type: text/plain; charset="UTF-8" >outdated format, standard has been changed while ago What do you mean? Do you mean that the constant was legal at some point? Was there ever a version of ISO8601 allowing the mixing of "extended format" and "basic format" ? The earliest version I've read, iso8604:2004, does not allow it (more on that here: https://externals.io/email/114883/source - can't find the proper link right now, am on phone). Haven't read the older 1988/1999/2000 versions, and it's possible one of those allowed it, but I doubt it. The only thing I can say for sure is that it's been illegal since the 2004 version On Fri, May 19, 2023, 23:17 Jorg Sowa wrote: > > 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. > > I'm not sure how would be possible to find out. I suppose most of the > frameworks (and thus popular PHP libraries) avoid this constant as showed > in Drupal and Carbon. The scanning of popular libraries will not show the > scale of the problem (however I will do it tomorrow) Helpful fact is that > those constants are just constants so it's easily replaceable with > strings 'Y-m-d\\TH:i:sO' > and 'D, d M Y H:i:s \\G\\M\\T'. > --0000000000004dbedd05fc1ccca1--