Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110744 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 42202 invoked from network); 27 Jun 2020 16:28:13 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Jun 2020 16:28:13 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C79191804C7 for ; Sat, 27 Jun 2020 08:16:26 -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=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8075 40.80.0.0/12 X-Spam-Virus: No X-Envelope-From: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-oln040092004022.outbound.protection.outlook.com [40.92.4.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 ; Sat, 27 Jun 2020 08:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UaMUUM4l43+2Br8gkOXtRWmKw7Z4lZhHq/18khbTpAOyMmZ3rHE5uCfaklVaGlq8kXdlcuAcGGcxiCLGEiTuUz45kUZLZ4cPy0Tpn41pPWtd08UkhCM+8is9R4i3VeTwB7i8VvTM/NvHqi6ManBiC+bsPZV5DaNtAgvOh0BI9YNzKaeUlHYLGdlaBqJuMPjvLZPPvYjvtFhw0GLTZ9artBM6t6QQOnyF+4ynFlJfEDhbTbwVW1rU3uCxJO89j9100Z6/HvZdxs3xPH+aJUl8Scu+uL3QtM4VJaYZORy+HMjCPViHDzQEY7yrshJjrz6jCu0tr0CXn4A6xXZlX/XnIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AyJKei4OX0/2PtKFhqboZ3byyLRru3Z8L58ZYrMmGjE=; b=K4b4aywd6e9e5oGfoI5JFcETTNIP8ufUqDvb/vH/qPxnJx4IrJaQVWgeZNb7uw0/rhNnFhbgzLKvH3NvfaxZiT4Ja9dV4V32AQk73f51RGC2tJsPDeYhgP/mCtCVwv0RONhEHBOeEFHEf2cpR0YlqcRSzucySZ+rHgaLWjZtQ+BSALo0Kj9VHD7+QV+0v6/Ad5zGjAgY0NzmEHmMITqOqy0TQB5gVv+ytuCKbyQp7KpH+yjy2urW15TUadalvWbqec5fgiL4hLt1wnbYuEYrkVhgGgcLLU4PCIU+yh96vcBt80+hF00KgjDwYewMau+E0QpXZGyvLm9qOCpuI6z6jQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AyJKei4OX0/2PtKFhqboZ3byyLRru3Z8L58ZYrMmGjE=; b=jj8TC1Zgxcy+0+/OeqlUMPm0LpO5gXPXv6eIj4QukNwl2xKsY7Tw1/20SmNTxvrcDTwURWHaeWwYPFJkcmEd2UW+F65+pPJSmK0scP4O4ErzF1qRJPWtzBh8+RWBNZnr5sXbzl3tqWW/iYr8FmRiKHrwbyzptztnm7puIhHDfQ/FH+6jYNK2rw1rx0o50arRVbsiLhwkKchMrl2k5XBkM66X8eIatGNL1TPKXw8vu9YYhcfu2tKmGZm1azLHDTr2iRPclQ4YZe8KnHPKJqWr/f+gttbAmw++zXEEvKN+f5XKVfzI/3dkqUtsvtoLlqbbtVaa7oi+t/eP3DmnOvqt9A== Received: from SN1NAM02FT047.eop-nam02.prod.protection.outlook.com (10.152.72.53) by SN1NAM02HT095.eop-nam02.prod.protection.outlook.com (10.152.73.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.20; Sat, 27 Jun 2020 15:16:24 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:7e44::50) by SN1NAM02FT047.mail.protection.outlook.com (2a01:111:e400:7e44::201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.20 via Frontend Transport; Sat, 27 Jun 2020 15:16:24 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::f0c8:f413:c7c1:e934]) by DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::f0c8:f413:c7c1:e934%4]) with mapi id 15.20.3131.026; Sat, 27 Jun 2020 15:16:24 +0000 To: Internals Thread-Topic: [RFC] throwable_string_param_max_len: Configurable string length in getTraceAsString() Thread-Index: AQHWTJP20y5MXeHBqkCn3pDlPjOL5g== Date: Sat, 27 Jun 2020 15:16:24 +0000 Message-ID: Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:8C47406C2FAC2666FAFEAB8B210C8F0319F8CBAE6B7773CCCD03B8EDC5C6E44B;UpperCasedChecksum:C11B02AF7F876808266C2F8BCCC86CD94D82469889DE3D496EDC3A65BE5071A7;SizeAsReceived:6887;Count:41 x-tmn: [qTH8vKIQyXh6CnNPIFmiT0UFcz09YQzzj/mIhemdH2oxRCoeY9iDnWaKa82e1NPE] x-ms-publictraffictype: Email x-incomingheadercount: 41 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 7fec11ed-9cda-47fd-7655-08d81aad0e8d x-ms-traffictypediagnostic: SN1NAM02HT095: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pzpZSppvk4trtBYcNaZSAAgyfESV/GxgFvrObhu4Q/lJBFV2ASAXUrFTjNeDzIcF2OdyVhcvaJudBA9D0RnHq09vy3rKJq9FjFDQaXlc6pZq9iIiDikNFa9BDfCstS7xYTQNzXQJ5UNFjONAJZH8vcpszuOz/EcbUlueff+yVFPXt9+nD64neFNBShPGOw+/QVaSvvdLvBy1GJVCRNJMNEuFtSJGdkHdl0+HYIvCFMA+QamowzM2exopnQ+EzWdH x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR07MB6618.namprd07.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; x-ms-exchange-antispam-messagedata: 7rTUUxBe53IqFS9LlCyf01zqsQxlVjB3tSNIqLU2bOXDXDf42Dzp+a2pbUYaQMdaGWcbLfx98cd54UkmTQHIu92DGJ0Wiz0WqLlqQ92g4yXDa3Qh6D4m2RKC1b2aN5bOPywuVn4zq46mKOaENJl2lGous2M9weuXrAFCnoPegD7Y0UwBNzprXir2buYmmLan9LC3UajQosSqtWOXKbQREw== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT047.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 7fec11ed-9cda-47fd-7655-08d81aad0e8d X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jun 2020 15:16:24.8021 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM02HT095 Subject: [RFC] throwable_string_param_max_len: Configurable string length in getTraceAsString() From: tysonandre775@hotmail.com (tyson andre) Hi internals,=0A= =0A= I've created a new RFC https://wiki.php.net/rfc/throwable_string_param_max_= len=0A= =0A= Since 2003, `Throwable->getTraceAsString()` and `Throwable->__toString()`= =0A= have limited the length of string function arguments in stringified stack t= races to 15 bytes=0A= (e.g. `#0 /path/to/file.php(line) function(=93012345678901234=85=94)`.=0A= This is not enough space to render information such as paths, URLs, UUIDs, = etc. =0A= if an end user wants to see them when debugging an issue or developing loca= lly.=0A= =0A= This proposes a new ini setting `throwable_string_param_max_len` that would= allow changing the string byte limit to any value between 15 and 1000000, = keeping the current default of 15 bytes.=0A= =0A= Earlier discussion can be found in https://externals.io/message/110717=0A= (Making the hardcoded string length limit of Throwable->getTraceAsString() = configurable)=0A= =0A= Thanks,=0A= - Tyson=