Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110723 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 48144 invoked from network); 25 Jun 2020 08:38:58 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Jun 2020 08:38:58 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 66CF01804C8 for ; Thu, 25 Jun 2020 00:26:36 -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.6 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 88.99.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from mail.netwake.de (srv2.netwake.de [88.99.170.10]) (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, 25 Jun 2020 00:26:35 -0700 (PDT) Received: from Thomass-iMac-Pro.local (unknown [IPv6:2a04:4540:1600:a900:74c9:8dbc:491c:11ee]) (Authenticated sender: thomas.lamy@netwake.de) by mail.netwake.de (Postfix) with ESMTPSA id 2A00926C6D8 for ; Thu, 25 Jun 2020 09:26:33 +0200 (CEST) To: internals@lists.php.net References: Message-ID: <36358959-f131-64b3-882e-0fd7312f0d16@netwake.de> Date: Thu, 25 Jun 2020 09:26:32 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Making the hardcoded string length limit of Throwable->getTraceAsString() configurable From: thomas.lamy@netwake.de (Thomas Lamy) Am 24.06.20 um 21:22 schrieb tyson andre: > Hi internals, > > By default, strings in parameter lists are truncated to 15 bytes by default in Throwable->getTraceAsString() > (and Throwable->__toString() as a consequence). > (in Zend/zend_exception.c in `static void _build_trace_args(zval *arg, smart_str *str)`) > > This limit is too short to see relevant information such as file paths, full urls, etc, which makes reporting bugs in applications inconvenient. > > Would there be any interest in an ini setting such as `exception_string_length_limit` as a non-negative value to raise this (either allowed to be 0 or more or 15 or more, defaulting to 15) > > (....) > > Thanks, > - Tyson +1, wanted this for years but never got around to tackle it Thomas