Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119045 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 63411 invoked from network); 28 Nov 2022 15:50:41 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Nov 2022 15:50:41 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 60142180504 for ; Mon, 28 Nov 2022 07:50:39 -0800 (PST) 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.1 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_NEUTRAL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS30827 82.113.144.0/20 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) by php-smtp4.php.net (Postfix) with ESMTP for ; Mon, 28 Nov 2022 07:50:38 -0800 (PST) Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id C287610C055; Mon, 28 Nov 2022 15:50:37 +0000 (GMT) Date: Mon, 28 Nov 2022 15:50:37 +0000 (GMT) X-X-Sender: derick@singlemalt.home.derickrethans.nl To: mickmackusa cc: internals@lists.php.net In-Reply-To: Message-ID: References: User-Agent: Alpine 2.23 (DEB 453 2020-06-18) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-688042390-1669650637=:249346" Subject: Re: [PHP-DEV] Remove warning when parsing datetime with + symbol? From: derick@php.net (Derick Rethans) --8323329-688042390-1669650637=:249346 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 24 Nov 2022, mickmackusa wrote: > Can anyone explain to me why it is desirable/beneficial for the DateTime > class to store a warning that trailing characters were ignored while > parsing a date/time string with the + symbol in createFromFormat()? I have no idea why I decided that was a good idea back all these years,=20 and I'm perfectly happy to remove that restriction from PHP 8.3=20 forwards =E2=80=94 it's too late to do that in PHP 8.2 now, as it's being= =20 released next week. cheers, Derick --=20 PHP 7.4 Release Manager Host of PHP Internals News: https://phpinternals.news Like Xdebug? Consider supporting me: https://xdebug.org/support https://derickrethans.nl | https://xdebug.org | https://dram.io twitter: @derickr and @xdebug --8323329-688042390-1669650637=:249346--