Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110815 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 1953 invoked from network); 2 Jul 2020 12:03:58 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Jul 2020 12:03:58 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4A7761804CE for ; Thu, 2 Jul 2020 03:53:23 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 ; Thu, 2 Jul 2020 03:53:22 -0700 (PDT) Received: by mail-lf1-f43.google.com with SMTP id k17so2994259lfg.3 for ; Thu, 02 Jul 2020 03:53:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Lg/pT8wKgnB0gugFtuOYx22I9hGpMuPDiHEuEApEJwU=; b=g701YNm1UXVxqyOLdjgbEaFBDI3iMiC8IrPHqsZD6vZxTVY1Yk+AJs+hNwCJjw6KVb OICUcoUhjF6bsX2Gjy+zCqnGcqfubV7sILlwDA02PN7mv6UY5qNLanqbKSDkG/a+a4J4 hXYf2xTo1NKPAbsvs8nWssbXlZnyCgBP8ZoA8oxn/W303tcN283MuuSPsHnz1UxrQA4h Regvt9tHcrmXRv9T9mNk6Qq60Z3DAyfxRC3fsB7ta+pHSrsRMtFFJesUGDhKrs7gp/Vz ibEaxksEGDwWFHOOXgC0PCLYsICwmKKBbjHUCDZSb8jmrg8JZKg2IC50OD2HRQ7U7Qyp edOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Lg/pT8wKgnB0gugFtuOYx22I9hGpMuPDiHEuEApEJwU=; b=nVYU3S+cLOxL3BbaJVjVgsDLS9gaypDYarJa2Xgzp/gOlhP048qGh98Nx3e1LBoa+Z zJ6aT6wMAq/E3VKVtv8VxWuKP8+gA5LLFfzZkveAO3bnvWR4Hdp0CLrHTF2JWnfZxMl0 R9+2CXviwyERSW26eBFZteTw090FbveKJcXpUbz98V00M02izCgGrPjzbcr54LmRA45G e+zmjBWvsZKl+7BTYsamZG21FmbSofG03Eykg7Qofv991HioWoMpLVRHqIE5o13VYPXR chXc+jBOoqh9q6TeG1bQdeRIK45Ia0s19ul+0+FF6UIrUe99TcW4GwkviGChzd1nE0WT PRFQ== X-Gm-Message-State: AOAM53109iCMIi0OA6m+TxN7mX+ZA/YqI6rDmIkRmAp2AL8rb07m6Q1a mnv1vi1Wx+v+JEu2UQGe95oNrEJDdu9ISK8KFHc= X-Google-Smtp-Source: ABdhPJxz90UxP22sClnOITWnwspWnLMAod9xQ3K5UHpqhNzo+WMh7Vgf2/gJITGhsbDD6E5/a8tgD4vTrLy4PF+KuNI= X-Received: by 2002:a19:ca11:: with SMTP id a17mr17770279lfg.120.1593687201087; Thu, 02 Jul 2020 03:53:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 2 Jul 2020 12:53:05 +0200 Message-ID: To: tyson andre Cc: Internals Content-Type: multipart/alternative; boundary="00000000000081063205a9733717" Subject: Re: [PHP-DEV] Re: [RFC] throwable_string_param_max_len: Configurable string length in getTraceAsString() From: nikita.ppv@gmail.com (Nikita Popov) --00000000000081063205a9733717 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jul 1, 2020 at 10:46 PM tyson andre wrote: > Hi Nikita, > > > Why is the lower limit of the ini setting 15 and not 0? > > > > I just saw that you mention this possibility as "future scope". > > I don't think your reasoning there holds up if you take into account > > that we already introduced zend.exception_ignore_args in PHP 7.4 -- > > and which is enabled by default in production. > > That removes argument information from exceptions completely. > > Setting the string parameter length to 0 still provides more informatio= n > than that. > > I wasn't very familiar with what zend.exception_ignore_args did, so I > missed that. > You do have a good point - it may be useful in use cases where string > contents should be completely hidden > but it's still useful to log arg types. > > I updated https://wiki.php.net/rfc/throwable_string_param_max_len - the > minimum is now 0, > and the suggested value in php.ini-production is now 0, and the default > remains at 15. > > ``` > phpdoc-en-git =C2=B1master =C2=BB ag exception_ignore_args > appendices/migration74/other-changes.xml > 34: zend.exception_ignore_args is a new INI directiv= e > ``` > > Aside: I think that should be documented in > https://www.php.net/manual/en/errorfunc.configuration.php or somewhere > else. > Right now, the documentation isn't on php.net, just the changelog. Thanks for the update. You'll probably want to remove the corresponding section under future scope now. You may also want to give some more thought about the name of the ini setting name. We already have zend.exception_ignore_args (which is TBH not a great name), and now we get throwable_string_param_max_len, which doesn't follow the same format. Possibly zend.exception_string_param_max_len would fit in better? Nikita --00000000000081063205a9733717--