Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107937 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 54130 invoked from network); 20 Dec 2019 15:08:51 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 20 Dec 2019 15:08:51 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id C13FC2C05BE for ; Fri, 20 Dec 2019 05:09:27 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8560 212.227.0.0/16 X-Spam-Virus: No Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Fri, 20 Dec 2019 05:09:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1576847364; bh=kSukovTWE4curO0RU8OOycaH8oqr7Y4ps+CIVozWTU4=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=eRXXKlsOQYBbsuNwn57gnXFZaEb75sKtIzUBPFEjVjqSqFYMd20VNHZ96bvVxG1Uz 6biv/OIFwvgdrVag3Bcsjm7/iabNAHPq/HN1kRX1JPTQZcgmp9CFCThsPNNWZaw8Ml mcKUigIBuA6M6d+fPo7WYOl/tru+fYcoEV+P6ExA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.2.130] ([84.179.229.4]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M5QJJ-1ihTDV1tHJ-001OTR; Fri, 20 Dec 2019 14:09:24 +0100 To: Peter Cowburn , Rowan Tommins Cc: PHP internals References: Message-ID: <1ba63ecf-5fe2-bb6b-afa8-655bfca45097@gmx.de> Date: Fri, 20 Dec 2019 14:09:24 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:SFCIpTQXLcf6TICBJ93tNFeN16+Pu44y3geP3W0o9DlXj2+C91w bDAuNJ07/PMzHFeEKbV938yWOtvthZ6IpxrAU44TqO6+KXKfs//xa12L60PJXDp9EJgnUR0 lXqYbMsXBLaPWV475yKsoxzLTT056vQbfaDKnbvMCvO+fqtmNvROdLUeu0iq+ZBPM0vBABx +Ntq+2Zhjg4BGR5k2M3Mg== X-UI-Out-Filterresults: notjunk:1;V03:K0:3eSCRPnJkuw=:Qeg6aql33e5zsJLM+cFKRc dbtylpBaXz3e72zr4Njrdfb1OviPOpFsHbuFqgteHhpJPK0pOzn6yzeaXWL6Q4g4OrdJzo2ql /AeDqFmh2tRlZJzbsIu9eLP359XDVjWJG/O2UUJ25rDKE1p3Ip332/hc7Eq6K/TnpipLGno2p 6gHt52WM+rLImVwwSt5RPkrFEHTVBidNAw8+JLM432onM33NOhEqWYxahaQTLgazVNRBr/ZxV F1OX19FYxaeakqFMlXhcOPPNVgQEllK2JVNa0ePxzGqNyaFm0qZuU0hW7PaJ4YuRyW3K4X5rT DdO1V4yxb2h5WaDqiGvfRf/9C6r2RESdMOZFOozkkRfkIV4Ca2gpk+0Xm+K9dtuttPQOoEHcO aQUYl3d+KcPIphai4an7Q8qWKYKvw++CGUbAHxLFq7uS+puTCbq0oW0XsQZi1cgr98ubrcWlb B9t/OTZ++YHUx7p2T5/xeNwqrR0Ctt98rxlwlXQNOpWf/UG6wGdBMlGzmAlrkpLRBFg5JSXFF uezlWbNojUdcCgb+7yVTlqPi0teh8iMKOiY4Bg/TfmpMaRd4UXYn9IatDckSH9jMqA/Q+e1BG DdIRv51byLsymbkofHzJmYWfNXVv1UA7E9yYJNpqnBEvZi3/M9eVs364utrU7hZAen5ukDxV4 svR81Rindr8OUa9SZn6i1Aea2itJ5gTAKA09I5Y/w5q5etOQWVxYVi9tAi89dKikG6eCEeRAO vJCTZxevEvt6BEGnFR3iY1qYB07O9v8JgKE3CtnF21//xrmCDRw8Jv5rwhwVXsELtLJ/OLWwf JYAoFDZnIxbFFqmRq6g4rfssE/qeFaJz9Q0XjOCsbCBznxV97rZaoyqwopldqZEEbhn3gEecW iW4PkbjBDtnGF513uwjWehiEAILa2A/8FScjSFF/rM/gO8v2kmlAtGmu+RHft7qCWELmHRjLg Ed/nuMR7VLE2pfLhaF2XqOaOGF3ywu8DVCNXh6os0o9n1tjsN0I/B9tYCIDkDCpQRg/r+sPdu Q3m0nT9gbHzp9NkQaVhzRL15QyHvK3KYWk/gsL7xqc+c9WoKqIrYndrayH98GIzK/f+b0vGSd iOdGveUVZDpWMcUEiJO6CIsFeHYE2fvlXxmwu2loIHYS6AanNqibbjfsK+bGhUGDTlEL7REQA f2C88oHY0mSZAs8BMsG/qQ9BraJjDmrbD7m1bm5uapgTs+2LcMm7oTURQgUmV3WqOGYFo1ydK c0zfMxwAIfLWCQsduQXKS832eiBTbw+UKtM1qwbQmXjT/UhgRp4uxU5hLSBc= X-Envelope-From: Subject: Re: [PHP-DEV] Re: Changelog / upgrading notes for promoted warnings From: cmbecker69@gmx.de ("Christoph M. Becker") On 20.12.2019 at 10:39, Peter Cowburn wrote: > On Fri, 20 Dec 2019 at 09:31, Rowan Tommins wr= ote: > >> On Fri, 20 Dec 2019 at 08:37, Christoph M. Becker >> wrote: >> >>> Maybe a sensible compromise would be to assemble a detailed list of >>> these changes, and to hand it over to the doc team at some point, so >>> that the manual pages could (hopefully) be updated in time just before >>> PHP 8.0.0 will be released. Then users could check the manual's >>> changelog[1] regarding the details. >> >> Yes, that sounds reasonable. In many cases, the individual function lis= ting >> should also have a note added at the same time; and at some future date= , >> some will be able to lose their "may return false" notes. > > This is usually where the UPGRADING document comes in to play. While > watching all of the PRs against master I've very much not been looking > forward > to making sense of all of changes when it comes to updating the PHP manu= al > to > reflect them. Then I would like to suggest a separate section in UPGRADING for these "mass" changes, where we can note that arguments of wrong type now throw a TypeError (instead of raising E_WARNING before), and that also some further argument checks will have been elevated from E_WARNING to Error, followed by a detailed list. For instance, for ext/calendar: - Calendar: . cal_info(), cal_days_in_month(), cal_to_jd() and cal_from_jd() now throw ValueError if an invalid calendar ID is given . cal_days_in_month() now throws ValueError if an invalid date is given . jdtojewish() now throws ValueError if the given year is out of range Thoughts? =2D- Christoph M. Becker