Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112934 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 35300 invoked from network); 20 Jan 2021 01:15:22 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Jan 2021 01:15:22 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8D7591804AA for ; Tue, 19 Jan 2021 16:55:10 -0800 (PST) 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.0 required=5.0 tests=BAYES_40,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-Virus: No X-Envelope-From: Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11olkn2085.outbound.protection.outlook.com [40.92.19.85]) (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 ; Tue, 19 Jan 2021 16:55:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dKs1uGKjC7IQyzspMLbyHuQcBOmu9lwgC8lDG87uz1Y3ADgjNjrUUJyN6hP1Kpg5iQgF0wVoqEIPaRROSyvAkAx+J51JoFeRMjgNxC1x5/PdE4txwXoce9bLJvSQcST5YLIxZ19R9EJeDPWCmyUdoHaoPu/abxQTg4sE8nD5D2rXcgF9qiHwDzM82ZWkKpJenDLZwKFt0Z4lIHCpfQGNQ484nA3abTDgtSIBvf5WmbeMIuhTMW+Emt9JFE8TpXOq/vG/xiH4h7ZtaJJuMzzD3YQfv4bpjCxDKcxV017Cuoie1JJLukYxoMuA5eIns5NtT+pBMu1Lb4VOP8P0P0iPxA== 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=NI3CgaaHBCmMdLRipVKFJR0zF68C09YXeOhv7i3eMCw=; b=DiRf3gOl6i/uMu+dD9jAvS1hCfpDlwFLyzVR6M4TkF3P2WL9HaFW+N5LuxzK6ZX/e1zQ2HSM4Rt5Tfww2haqlhShExXbMzmTRKf3/hzvaBYSxfcVdu3XkoGeQJgDJYLm/jZn4CzIyX7nT/3uKirHD2AKKHVommaVJlKbQg6yljjLfDlhgQ3fZ6ZHuvD6O7UtltN5Ik0JQ7yQdrMgTr27TqZtk7bArQKd6kRYFe0sjBFwmOnGDs2L2m+Jc12TF4NalqWpNG1pYk97ps2m/G7c+VTewkkCCWva/tLQyvnzEpvLYV7T/hENiCMP96xGiHcL3xuG/xxjSikmF3lY6iwqGw== 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=NI3CgaaHBCmMdLRipVKFJR0zF68C09YXeOhv7i3eMCw=; b=nzsaVKcqpLz1rM5PdVAIHjMDx1zFs4lrFbhQyjQdgUYsMTRyWz7AU6DeAlJbcdMlFZ/A3VxeFPorCSdGuoMjHutWXTF3f+vgoud/Zz0fn0JYww1ZJ9N55fAPK39OOLsuQrU5mZDqNd5aXKwd56USf36+RoFzigPaBZMUSMs7SmzjkA8huOwx96CgZhUcSca3xTc29996dPhzGwDmZPSFwfCZhxjzT3L/Qb/OEamQlamwp4vr2ZyzZX2w+jJoVjLflHWdC87Xd5Nc73WsP0ZCjXYAumvyVWik+WO6yB93N6uzlBQBHlcTWDGPKW9zA0Hx+JcGkywjRAyskJFlqz7WZQ== Received: from CO1NAM11FT017.eop-nam11.prod.protection.outlook.com (2a01:111:e400:3861::49) by CO1NAM11HT008.eop-nam11.prod.protection.outlook.com (2a01:111:e400:3861::294) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.10; Wed, 20 Jan 2021 00:55:08 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:3861::49) by CO1NAM11FT017.mail.protection.outlook.com (2a01:111:e400:3861::364) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.12 via Frontend Transport; Wed, 20 Jan 2021 00:55:07 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::b4c4:dc11:5337:821d]) by DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::b4c4:dc11:5337:821d%4]) with mapi id 15.20.3763.014; Wed, 20 Jan 2021 00:55:07 +0000 To: "internals@lists.php.net" Thread-Topic: [VOTE] Dump results of expressions in `php -a` Thread-Index: AQHW7sXh/djsjqFFPU2LB2XOuWtB1g== Date: Wed, 20 Jan 2021 00:55:07 +0000 Message-ID: Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:6555A533138093ECB51948B7BF0F98BE60EFB46C86A8155E360F854B3E3531CA;UpperCasedChecksum:1332C423F5F0FF4CA9F0E47A4E81607CE8E894782C30D55800C3EF3DC49FBB58;SizeAsReceived:6808;Count:41 x-tmn: [DbfI6kKvOukMqZCnUbsfdFzlO4g6y0MI3F4lVLqQwidXaDd4CRMKdYeIDii2O2lf] x-ms-publictraffictype: Email x-incomingheadercount: 41 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 7f5e23fc-5873-434c-addb-08d8bcde07f5 x-ms-traffictypediagnostic: CO1NAM11HT008: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8Z3+Zt+WrD5ZVvz0vGgVZ6gzjOrLox0KWrYeeQsE08KGm774VZAgzjrQoriioLU/9EKHU4z99yCAuuLehLL5KXN0NHw80uFrPniDiZx+/MyiVv0d7H/icthE6LupJQdzyxNYpK1wU/6AlEp//o87WAY7aN9YYBLff0bMg9WnlFYqI3r7j1W5LKeMs/qg0yWC83ImsFTE97HYhSkCy3uBmUcOajPg5PBA4+nMB2irookjVER910RdK9LaCrhDsQvu0bhmODNAl2n5ipo/ROB3dapWTGXYgsLQoF/MciSLtRM= x-ms-exchange-antispam-messagedata: k4oCAlnWueBE/KBLaFaAehrClbiPJJNb3tVAN9vEjzyiRPICj5G4Ed+L/+XS+GSrmx8sWMEXIRMjq0CBuGRPFoO4UKoxS1O9VM8V5Bbi5oFbQaUSycD4QEPrtHCPufnay3hIvQ10NcdISzanbbqrgBjyw05TQ/nqhMJzapQFxaLiMuE1KY1Z+94IUsypoHKQWrGW8fCLI2NYi7SwzvNMgw== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT017.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 7f5e23fc-5873-434c-addb-08d8bcde07f5 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jan 2021 00:55:07.4178 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1NAM11HT008 Subject: [VOTE] Dump results of expressions in `php -a` From: tysonandre775@hotmail.com (tyson andre) Hi internals,=0A= =0A= Voting has started on https://wiki.php.net/rfc/readline_interactive_shell_r= esult_function=0A= on 2021-01-19, and ends on 2021-02-02.=0A= =0A= This RFC proposes to dump the results of non-null expressions using var_dum= p/var_export() by default in `php -a` (the interactive shell).=0A= Additionally, this adds a new function `readline_interactive_shell_result_f= unction` to the readline PHP module.=0A= This function only affects interactive shells - it can optionally be used t= o set or clear a closure when `extension_loaded('readline') =3D=3D=3D true`= ,=0A= but that closure would only be called in interactive shells (i.e. php -a).= =0A= (That closure would be called instead of the native implementation with the= snippet of code that was evaluated and the expression's result,=0A= if a php statement contained a single expression such as `2+2;` or `$x =3D = [1,2];` (that could be used as the expression of a return statement)=0A= - Dumping of expression results can be disabled using an ini setting or at = runtime =0A= =0A= Thanks,=0A= - Tyson=