Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120366 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 66689 invoked from network); 19 May 2023 21:16:55 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 May 2023 21:16:55 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1FBC1180506 for ; Fri, 19 May 2023 14:16:55 -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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 ; Fri, 19 May 2023 14:16:54 -0700 (PDT) Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-4f3a99b9177so2201025e87.1 for ; Fri, 19 May 2023 14:16:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684531013; x=1687123013; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=QYvWV7pbYy5akHpXrTGjp7rbhHsUliTxX0xOmqruyQM=; b=Wm73V8R67EAMcc2rbJQ5C+6ytE3UmCCbEVAsB93f3tkMD8rqmw1ralYZR9YK1ePLbY pEGTjVsuFbszkaAduai4PmoeyXfdyzJDjg+JmDLW3UUEudPKaSdgFm9obyo1YpPiFCvR Z8YvE0E+oUwxDzaPzy4M9snrBGorhOegggq7MAsZF1FPyhYQ/Axpus1a5nU/xkvfUSet Ui8/9alloOwjAerbu8+XUFMDti27PDJCKE2PbRKklEjzR1zrXu80J7LSDPVRH56HroME qFHbk6m4Mu4r0u43KRGnNfYYZDMS+ePpYPeQcpneQ1RBRn031EoJf8dTt6cat6Nvco5k bbzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684531013; x=1687123013; 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=QYvWV7pbYy5akHpXrTGjp7rbhHsUliTxX0xOmqruyQM=; b=A4UD0qWcadAWzyzxSSXjdWbVLfk+/Kd7RsarJFCqMIN3lzmBcbUVb5pOfUxAdQLm+n SW+5k9D63HtpHl34iBCcrqJRiVit1Ov+H1HBY85/pFvE6YkHBzS8LkIBqZD7AeHxZHrX GI4uMJ6bEcocnJcmJ0nli5VVo60JtSx3vT3uydwS2s2q8lZlJM18j905t+T5sm4MMZLp FBSULt6H+0LU2Cxxi0faQzuRZsaheAeqUrcXn7nn5sHtgvKLThedlVInX04pWvnIUQcv h7XwlkBFqtXsLV9ESFZu+UClzoPQnwFqZszIxplSFdriyWMEdECYijeWn6FkjNUygzAh 4aMw== X-Gm-Message-State: AC+VfDwjlIDYBsLJgA4/pQpLrq+FgYq3EPuEBUJxaOedRbLDLbwiuC/y oSAiodE6STzSJBvvWuj+CO729yKe59/bpVEdXRg= X-Google-Smtp-Source: ACHHUZ50kBs+aHcJ+qvz0Dlqqt/L+m8xU6cmQuO55ogHlbYx2GJjrzMrAmbkGGdBr2PkbbEewxHWCY6hFVUPL65AFyk= X-Received: by 2002:a2e:720f:0:b0:2a8:a651:8098 with SMTP id n15-20020a2e720f000000b002a8a6518098mr1365154ljc.38.1684531012265; Fri, 19 May 2023 14:16:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 19 May 2023 23:16:40 +0200 Message-ID: To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="00000000000099694e05fc1270da" Subject: Re: [PHP-DEV] Deprecation of the formats DATE_ISO8601 and DATE_RFC7231 From: jorg.sowa@gmail.com (Jorg Sowa) --00000000000099694e05fc1270da Content-Type: text/plain; charset="UTF-8" > 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'. --00000000000099694e05fc1270da--