Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114441 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 41102 invoked from network); 12 May 2021 14:07:54 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 May 2021 14:07:54 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B024F1804B5 for ; Wed, 12 May 2021 07:15:54 -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.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 EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05olkn2067.outbound.protection.outlook.com [40.92.89.67]) (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 ; Wed, 12 May 2021 07:15:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LZWJHOAhyvh3rst7yzFmo7MYPFB7kHDYgKbqdd3XIbpwfExAUi+1ewC19+IZ8lU+k8058xzAbaKKVDCpr3tj9IF7o333Bz0X21xSaYg2o5JB5nfuWK8osYEUrDlrfAWVYR4+m1wwqEvXi2PB9ljXjFq+wsalHjQP9kV2F2BNoIgu4ChHiYDz5VxZjU4aJ7ZQpFQsZ+1epJc3cZrOswlUR/eGvoNMjMf19WGrZAblmoNT0jS6xKnLAl9m27isUBsKKrnanoaxUAYva3qU2StKjPwmrg9wICXXp4I+r4rtTc1rntOSjtJxYhEBOygaOdUtckQJPtog3hcb9y1cOYERZg== 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=FoeO8ImCkPgP74jb2G/OOIwWlsownQxoTGwgcCVopyA=; b=JXN+xohHEArgz8kI9Zu3ZAVvtLaGlc6HWpH5eoPQXgrCMhj+LfwdsSvvueIlT8DzScimqrHONHIuKQJCBaVA5duQ6UUb4rIsOMj49JQYznR9yYTop96pXpNonN1+jw3TiDSzvxsf6vIFPBwpZsAP2HP2Iwdo6C3+emylMX0xC9v9XgZsbxbjEWvx7+T+M2XctSAftRV4MrefBN+Gxl8R1/dg2+Jjt4xL1W9ETIqo37v1YIRZCiOHOJHmFvLLtjVxGrPSa3ByC+7q1Lxft0JMlmlbVVmu23MWatxrh/Mn24P0xllKyCudvIskwUDsw1rFla7ZA2klgEsY7oSFwV38CA== 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=FoeO8ImCkPgP74jb2G/OOIwWlsownQxoTGwgcCVopyA=; b=rGAsBjWmJe8pcm0Xs6wvI7wGzQcOQml5+6ThXQ25k8FWN7x6p/Dq9KWYWgi2uQHv6wsE2AWNMrTBQUwwTB2AA5LxHin82oXmwslUJtXlJBvK68koXTG6zXyuXSb2qTz01WOWtD9I4PT9hHK3aMOXxNQVW2hSaxoJkxk/pzAi6u5Cdwgl58vyJmfiY7sIrRDxBlbxtUjCuDkTgFoWz90frs1JBAma1QqJd3D+RTPxsqryuK2J1TJgB0Qtb07iWh0NFj0Qmtu1yhtwgLnXJOLdOt3PO79xSzUhhUYeVpLgJMv1iA/NgSMY+OzYRGbjZzkXNVUGjkwohvWNyKCOqCKJNA== Received: from VI1EUR05FT057.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::51) by VI1EUR05HT139.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::305) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25; Wed, 12 May 2021 14:15:48 +0000 Received: from AM8PR09MB5290.eurprd09.prod.outlook.com (2a01:111:e400:fc12::52) by VI1EUR05FT057.mail.protection.outlook.com (2a01:111:e400:fc12::213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25 via Frontend Transport; Wed, 12 May 2021 14:15:48 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:00E3EDD02B26F03507E4FB9C35E632955C79B53BE1C1DD3392D522BCC9E842AD;UpperCasedChecksum:31C5A3654A5BA28013696936D5FC97C84A35FC4FFD43EDFDDAB9CFBDC3E7196A;SizeAsReceived:7643;Count:47 Received: from AM8PR09MB5290.eurprd09.prod.outlook.com ([fe80::d4da:1b64:259:9f47]) by AM8PR09MB5290.eurprd09.prod.outlook.com ([fe80::d4da:1b64:259:9f47%7]) with mapi id 15.20.4108.031; Wed, 12 May 2021 14:15:48 +0000 Content-Type: text/plain; charset=us-ascii In-Reply-To: Date: Wed, 12 May 2021 16:15:46 +0200 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: References: To: Nikita Popov X-Mailer: Apple Mail (2.3445.104.11) X-TMN: [nF58Z1W6Q4/VHgeS1Mwux8YWrwKPymVE/uoBGfAs0BORcqIY528IqpIGub/I3tC+] X-ClientProxiedBy: FR0P281CA0053.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:48::17) To AM8PR09MB5290.eurprd09.prod.outlook.com (2603:10a6:20b:36d::20) X-Microsoft-Original-Message-ID: <487C3811-B5DE-404B-A19C-8DE153A51D9B@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2001:7e8:c815:5400:b4b9:4852:fee7:db89] (2001:7e8:c815:5400:b4b9:4852:fee7:db89) by FR0P281CA0053.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:48::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.12 via Frontend Transport; Wed, 12 May 2021 14:15:47 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 47 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: b6a38004-7887-40cf-366f-08d915507070 X-MS-TrafficTypeDiagnostic: VI1EUR05HT139: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Aqdr4hUfinGYTjfC6/uAsEcViB4IqX2okjFVdX0Gc8ooJ1ddnkUPABlk/XxRLa35ImmWdEKelH77xKdq8S9a1kKcTNicaacvE0dRLOrJxpiWI3PGqG+r8z0D7KIXTP0Vpen2T2lO7fMe4hF8ZSRgShUsYdg7rIlMZ+LPv5nuBuI0XTfZN2fQq9GU5q9SEeu+XUxJl1RlOu2QeAQvd1qcn8l1/4bIRawiXtXXixEma93chkJdhoVoEVxhPqznuxSzfuC+NIcclAADdsMWkK57Yc1vwFsYTnpvTzNcpUoT7eFTjGQaEp+gxyQ+X6uLz59IEeps6ZEpaOuKnN94YT72WERuCD2CO61mT8q4pVkEbP3tWZfurgxX6JWMDgi1UKje6Y3UHLGqFOTYwFC6FMubrlBPyBZtHvCKslHLEa3yvt5nZ+2InS75T3Bo8Hhj6gks X-MS-Exchange-AntiSpam-MessageData: C6UCvH8A8HIc8sBqnEMdy6rDFSPunVRtZGh3mGlcsy5A2M4Lxvsw4Kxnrs4ICKnIFikTlWOsmetdLdfzg32Zds1q0R9jOYkvB+cZVjAf751eWMVnZx+vsoCFyWMGNamjjpaK7ZuoZEodIpO/qab1edtE9ec0txmYCV3bRFw7SGPNZzqW6Ana8ofZTlUHl/m9QXxQMcOnODMzEfOUnL7hGA== X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-Network-Message-Id: b6a38004-7887-40cf-366f-08d915507070 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2021 14:15:48.3957 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VI1EUR05FT057.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1EUR05HT139 Subject: Re: [PHP-DEV] Disable interactive mode (-a) if readline not available From: bobwei9@hotmail.com (Bob Weinand) > Am 12.05.2021 um 10:12 schrieb Nikita Popov : >=20 > Hi internals, >=20 > If the readline extension is enabled, PHP provides an interactive shell > under -a. If it is not enabled, it falls back to an "interactive mode" > (yes, the difference between "interactive shell" and "interactive mode" i= s > important here). The interactive mode is simply an stdin input, which nee= ds > to be terminated using Ctrl+D. You can only run one script that way. >=20 > I think the current behavior is quite confusing, because it's really not > obvious that you ended up in this fallback mode (you need to know the > difference between "shell" and "mode" in the output) and most people > wouldn't know what to do with it. The latest instance of this is > https://bugs.php.net/bug.php?id=3D81033. >=20 > I think we would be better off disabling -a completely if readline is not > available, and exit with a helpful error message. I've opened > https://github.com/php/php-src/pull/6976 to that effect. Does that sound > reasonable? >=20 > Regards, > Nikita Hey Nikita, yes, please merge that PR, I've been annoyed more than once that the php -a= was not actually interactive despite a seemingly good message. (and as cmb= noted, it's effectively identical to bare php without args.) Bob=