Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127090 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id BFEB31A00BC for ; Thu, 10 Apr 2025 20:03:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1744315275; bh=+VMjFC0EfjmRsj/8T5TRPTg8oTZk+lB/Z+OvURMIeBc=; h=References:In-Reply-To:From:Date:Subject:To:From; b=Q0aHcBQWUEnDNtK5Rd5nxfurndpMCma2Xy9OctWV4t0E6Kq7CwhVytWJvL52CKcxC kbdp6G2cYaOfYaViYIf/vs57bC6Nfd22S0g3W2qb9PirWBPa8lvJZ2ye7brvPUpL09 YYJd1hNHg67Q918PtIQfB2gVyn6HOzKcej+9kJYYrlaiuTFVsm+HD9lJrp5kfoyVQZ ah5tVLxge7HMirwTqjeO8cDKAZapb9pUPh5aiawmQdWjhnfzfwZzW/az9JcLc2k2uG XfSmO8RMJpCJkh3rGPZrWdq4oBHh+P+7vPFVl95b20SLoiEDUxJ3rZiAumwthFkDEo I9ikUkUVumSAQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 18467180079 for ; Thu, 10 Apr 2025 20:01:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 10 Apr 2025 20:01:14 +0000 (UTC) Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-30effbfaf4aso11676531fa.3 for ; Thu, 10 Apr 2025 13:03:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744315416; x=1744920216; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=+VMjFC0EfjmRsj/8T5TRPTg8oTZk+lB/Z+OvURMIeBc=; b=PayrX3CEnDa04VjJbQCyh0wRQFl2MrV0cNaRxH/cIEKbtDahOhxNELRxjbVKOctYm/ KR54XL5Fp0H5dr/CzfpBZ8hfSZkqZKJtNsUwGV1JbqMPq+qTxkt2UKvg+2riVLCCeLEv FvzTOgZJwReZm2PfRuNAgZ0Co+gvWuWP9DnlVJNMo8mz+SU2S7qSzZkADkYIKNU28h2p Bt5MmIZNpXbrRAM9tUA54XLsNS4VYfGrpY0iLBWvZvAKeMF7SGri8t8R35/OvAfdvlSL uZIrfanIkSR0Ouef5K33cgDaL6n08PpSsKK2iEKN/PLwctGlwdASlZUXWrItixSantj9 UUqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744315416; x=1744920216; h=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=+VMjFC0EfjmRsj/8T5TRPTg8oTZk+lB/Z+OvURMIeBc=; b=T26vHzN9a9IGscuHy5hzNwc/DdA56R4nEvuFSwrbbYR7R4PZTq8pKRrfjAhvfqUsdl 2+FKxLErrZNAu0dGf8vnR7wGVFJCJzPLKw4eujTo0raVE2RQ5fMAY6MMWo7JO6ZCjuWy NVMGE0HVkRq91X3dSypbz/r6NRaPliuSFBZhaQ++PwBjZFYLXvBKQAd6KFx78ug8/Pd4 mIn17DJdfOUjfkdbIl5FcC5Yh2ggRpL5g2dFKAtrWwU3iP5k+PPjYAd5RTcitLFVuUcZ wJZMXHLtt/7e4TLH1HkJ57qvgEIDRM319trci0t2XlTpm7cxlING0JNmBKC5cXjHuaqT HQJw== X-Gm-Message-State: AOJu0YyT0+FsAtFmwg2sy1lsvpHxs5INsTtf/EiuCdj1suc84yGEATwJ kqj7qzDhG5KPMEyvQRbzzACBI75zLJuTOruy0wEDAZCkj8LX5p8wG8fAu3UwiofyyW3g6Luf4kY aqlEg9NzSEDTLim8m3EuU13LKCn6TmvX4 X-Gm-Gg: ASbGncuFdb1tSNMgbixSaBnnL9A9IlQz5QSezviLqZ1uyVHVrLM3vqw+OsZA7g+nUHx TglUtifR3MJBxBEmEjG4iorPPIqKhlHTWpXeN+vCbc5stpN6vNYZZGI8qyU5qPBNysMvRjXiIRn GfRGzEYu/0Iz20Gg57KkxPNjOlgq08ow== X-Google-Smtp-Source: AGHT+IHgoOViOYuRLbAVwCEF6tafdGF+5LhlCrv9/TGuhWAsVEeVuUrA69Uq9kvrDEDTzeRuMnq5kkiu15UBqKz6x5A= X-Received: by 2002:a05:651c:895:b0:30c:1002:faa8 with SMTP id 38308e7fff4ca-310499d4946mr175561fa.7.1744315416083; Thu, 10 Apr 2025 13:03:36 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <2e02e8bd16ccd8f326a014fa3812da43@bastelstu.be> In-Reply-To: Date: Thu, 10 Apr 2025 21:03:24 +0100 X-Gm-Features: ATxdqUHW7TdY4ofiDM2Ikq-F9QMxc9FjuLzGqz4hadkXNldyg2isKDKr_9620VE Message-ID: Subject: Re: [PHP-DEV] [RFC] [Discussion] Change default for zend.exception_ignore_args INI setting To: php internals Content-Type: text/plain; charset="UTF-8" From: tekiela246@gmail.com (Kamil Tekiela) I can't find any information on why this setting was introduced. I guess that it was either to protect sensitive information or to reduce verbosity in the logs, but either one seems like a poor reason for this setting to exist. The INI comment seems to suggest that it was introduced to protect sensitive information, but that doesn't make sense to me since exceptions aren't revealed to the end user. And while verbose, arguments in stack traces are useful. On top of that, it seems to me like this is already covered by exception_string_param_max_len. If you set the length to 0, isn't it the same as setting exception_ignore_args to On? Or does that mean that no truncation is applied? I suppose if this INI setting must exist, then it should be set to Off in both development and production environments. The max length should probably be increased, too. I would also appreciate it if it gets clarified in the documentation why the two settings exist and what the difference between them is. And I wouldn't object to removing exception_ignore_args if it's a redundant setting. P.S. The RFC mentions execution_ignore_args too, but I assume that's a typo.