Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110108 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 93064 invoked from network); 10 May 2020 17:22:48 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 May 2020 17:22:48 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5FA091804CB for ; Sun, 10 May 2020 08:58:58 -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.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8560 212.227.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 10 May 2020 08:58:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1589126335; bh=3jSxVOcBAxNFnMsn3RSDtqnll/MIyIj73+tqrJs7WrQ=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=UZ93rzb0Xy84hAyfCcJN37F8j24Adz2qtba+3kjBwfvq9NmjfEDb6Zup8mn7ZftII bKG7HrFzCtoJSlxUg4qrnv1JEQ+Icf3bLB/PWfDaKTEVnPSPQNdXIpp6rqatVWNAYG KJUyWcKEjE06VYI9aS0KLkMKN+HJWHG75/HFLq0k= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.2.130] ([91.8.164.71]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MLi8m-1jpTlH2PrM-00Hdl8; Sun, 10 May 2020 17:58:55 +0200 To: Benjamin Eberlei , PHP Internals References: Message-ID: Date: Sun, 10 May 2020 17:58:54 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 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:3S2LVWD3+nrzryQ7NZCQ6PpXKJnB4fzUITvw/kgo5iOVQxr+DdG 5U7lRjZDFewSoQeiQfDUsaE2ocbSkKYlmRf//Bv6Z0T3qY02Mn8qsUVIfzdu0+EshLICLGb Me5jzUIP4YVzwiv/sft5eDvuNCu9RSJW5J1Sp24y6oy+qks6OXJhPwodX/IuOMC/cVmW22/ hnJUVbyPVNtDeyDtmv3IA== X-UI-Out-Filterresults: notjunk:1;V03:K0:B60Qhw6G/gU=:A2l5yqNd/CX5ZsRSZGCO/l YmNAaww4ZWia+ZK7ZUUyHzHqgZtjDBVqa7RcILnNR72BvKaXmadql2BYgI33CAJ8CxxbLKyuG y5Bi4NIEaeGnzGvPKbZAWnHU4jN8jw01zn+aaAGddxrwN3PNS3NQOrUHGLhVuibtr5vveyD0x 2wOPvFvl6OmTN/mxUe8E0Xoadhegivo1jOIDz6iI5z2CKj1eNICACAWc1/ubb+C6wHh9h0m/R UDqvmQVOlVywXf5t15RE1C9g6WIER+rVBa8PfL9bwwu0UxJSF4Whj/KkYcR7jHExk7rPpnGcP cszjM4jgxUXTGea6OrfN4WfZbolhazgLr1XQBuQEeRgzcIIQfqnuUKSmrVy5HZQPQRRH/Mvly BlkQ95wz9y8jozINP+AwacXFdjxISXWUBdhJzwLIN8ZzPE6VKkKc37GiULUocjDgAAxEnztLa flrAm1KcAB9+Z6hQF++zHja6oLiDYogerqMHZ9UxsawOpim4FIyVh/nieU6ltuqveF5SdPa+O 9stPy9gEv6Lok1mzcmMbeDrrCg3wPWvQrwthWlntEbGQlbD/ZqPu4vdAyfPbdDuyxU9iuVO3Y RJaaHvoAA2JoTAt/f5as7gBOcZtaJ6Q1YpRYIgmOd+2T9Alh7tYP2K3DscpmRuEuJdwwBjx8o tII+CTY4tAN3d3WIEWpedZoHZuyvc5IBPNyk4OUo86AilKS8osejvuTRwvHbzUAsyZTOwUUDb RqccEwnXtLZWRqBhmaVpQXlHDpi3OCGPzxjnkD6RZDxzeYeOBL5uz5EpaRDcofrTUhOpoCgUZ 78Y7rsY9jSkXdzwxBKc+kyPpDdm8uBq9GjfyoVcZ96pHv07MMyE8fIwsDxGnRhUmlbRjidwWR Ns0a5kEa8C0W2e2QkUuGLNuvtw4pl1PCdFoCL9mgdaHmXeBFMJh/3hKiae+WcCc4MNNViY7k7 Twc2biH85Rii31jwuQodshA61CnhnK/fdT1o7HHhG0DGKX4VNsPZwHG6iPGFNK455HnmL3bI6 dN5kG7szyZDyFLlvF+KR8eVc41aCQQwZgvgjoJ6Oj7gnFxvAq/SyPzzS3Nr18a5WNvoS+F5ix Y2A3uJGR9FhHeB018xsRoPcmMuKTPOuLXI0y7ylzh1dcGRTQ0I95p+L4C1cipaZQO+0evJ50N gtilVoW4mQ9qtHHL2cpD7e0Y4qV19RIVoDzRTI+fBhXcoA6+JCUEgv92xuF2bVKWmu0BogXQK IZuo60SurBUVn+q4J Subject: Re: xmlrpc_errors INI setting From: cmbecker69@gmx.de ("Christoph M. Becker") On 28.04.2020 at 21:03, Benjamin Eberlei wrote: > Hey, > > while working on cleanups for the internal error handling code, > specifically extracting different rendering logic into pluggable hooks ( > https://github.com/php/php-src/pull/5484) I came across the ini settings > "xmlrpc_errors" and "xmlrpc_error_number", prominently integrated and us= ed > in main/main.c > > Both are used to allow users to change the display rendering of errors > while display_errors=3D1 and these settings were added in 2001 and nothi= ng > changed much about this since then. > > I am wondering if this code is not better moved to ext/xmlrpc extension > instead of being in main/main.c - this would be similar to how ext/soap > handles errors in the extension already. > > Downsides: > > - People can currently use this setting when doing their own xmlrpc, > however that anyone uses this setting looks so unlikely, because its glo= bal > - With the potential unbundling of ext/xmlrpc this could also mean the i= ni > settings get moved out of core entirely. > > Do you think this small BC break moving the settings to ext/xmlrpc is > acceptable as part of decoupling error displaying from php_error_cb and > main.c? > > Has anyone seen this been used in a project? Since display_errors=3DOn is a development feature, we would not even break production code if we *removed* it. Moving it to the xmlrpc extension looks fine to me. If anybody will complain that they need the setting for XMLRPC functionality which is not implemented on top of the xmlrpc extension, we could still consider to offer a minimal extension which just supports these INI settings. However, I do not expect anybody complaining about that. Thanks for working on disentangling the error handling! =2D- Christoph M. Becker