Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109893 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 17317 invoked from network); 28 Apr 2020 20:31:06 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Apr 2020 20:31:06 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EBD121804C2 for ; Tue, 28 Apr 2020 12:04:17 -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,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE 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-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 28 Apr 2020 12:04:15 -0700 (PDT) Received: by mail-wm1-f42.google.com with SMTP id g12so4110584wmh.3 for ; Tue, 28 Apr 2020 12:04:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=1qutiSYvmL6Xj7YfcF0pKiA0gAo8hQ84J5A3AZlIBr4=; b=G5N6ZHw8RY4cB4z0iiny40c/sxd1ibtC+f0HvM0y9eSKTaT+iGi6bEDsnl02mXMqVb edFb13n1vJen0TjK2TJg4qQfiR+SRrISqU0HvzLjF9gjvY1vgcFUnLY9iVTfi3hSORvk 9tNSBCRA8Ekp2PC6jvsQ4VUJZoqXpoM6eIqgsoBuxc2w8GoZXw+Y6Zu20dumCK3qdKYt Y8xhLhkkEI1FqKk0XQB71SMuWrP1rbuQflD79FPkmwsmvNv3MK0/9l9AGB9R5zUuL/Fr LlFRdODputo1XewDqFD9eYUxqkr/9GPbxhhRthaQ3tftx4zjQUHYgkH/vdn8jC8jB+Qb hQZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=1qutiSYvmL6Xj7YfcF0pKiA0gAo8hQ84J5A3AZlIBr4=; b=oGz/bWyN67UTVtMRvCc+sh6kGHRYurXwXwlWbdET6PUmjXZrKfPUtxmhvvzAAXogqh 8MWLU0wGel0LZneO4FmlOi0mO8nBpHTZSe86PnHf5WuIFWL9Z6k8QvUibTNZmuG+bSjS 34YRQ7olmRGl/nFxPbcubrWXl9od17JEeKbu69hrP8/Bjrnd0KgpT9QwpPDL6eE/0lwq AsPh48QcfajYv8V9CESZ7YBLVf0lbYT75OHYKiJbTdEk4BPohCO8y96v/Hm4zAf+pVBs I9zqpOATlN2nqAT6H/D8LNnY14MwopYr5hWKn79KT7wCTd+CsEk2MA+1YnBlRke4K69b mutg== X-Gm-Message-State: AGi0Pua/15ww6YO99gwJ1nwMmqCFD6mrMowYaAJWcx7sE1wh0N5VmH5x 85l8eHrcknRkEOPjvm0EBFEWeb7oSxoNWCL1bgLAfVbhIAM= X-Google-Smtp-Source: APiQypK0chX0xhjQWgPmIBOTmGsqvKE/baLWMNxbICIsZoxUBkgwX+sI/kN6TmgsUGI8khqHCwwtLdNAIsZxV2sYzQo= X-Received: by 2002:a7b:c0d5:: with SMTP id s21mr6044378wmh.107.1588100649971; Tue, 28 Apr 2020 12:04:09 -0700 (PDT) MIME-Version: 1.0 Date: Tue, 28 Apr 2020 21:03:59 +0200 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary="0000000000001c15b305a45e7fb8" Subject: xmlrpc_errors INI setting From: kontakt@beberlei.de (Benjamin Eberlei) --0000000000001c15b305a45e7fb8 Content-Type: text/plain; charset="UTF-8" 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 used in main/main.c Both are used to allow users to change the display rendering of errors while display_errors=1 and these settings were added in 2001 and nothing 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 global - With the potential unbundling of ext/xmlrpc this could also mean the ini 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? --0000000000001c15b305a45e7fb8--