Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114485 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 67993 invoked from network); 15 May 2021 06:27:26 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 May 2021 06:27:26 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 24A2C1804CC for ; Fri, 14 May 2021 23:36:05 -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,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.23]) (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 ; Fri, 14 May 2021 23:36:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621060562; cv=none; d=strato.com; s=strato-dkim-0002; b=gx7LovtGoTpxbnA+ANQZ63JLM2CZNq6pr2KgHa1vw2RazvkvJPSsykPNRzIMpZiee7 8FVTJTls+xl95dg5c/BkfE4GKAVy9gJiO5jShSZAbR7rKCYU9fU5O7v+yDbpJr6+Q1JW Zl5sk7Vv4t8fZbyK++tQhW5AQXdF7TGY/qXiHKlpZsPvZOZk7zC9z+k3f/q1l938HWQw vPlZKZyme0LzwUgdAgXqeE+g6ILgkkAqBIriiHwjsXy4qNE4Blh9yZ5znjfl7DloZkr8 yTFAuTfqm8uTDKBZIK943tsHhK40UqNRUluloj4tJFw+SmqxtKCINSA37g5ZeVaRqhnP MK4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1621060562; s=strato-dkim-0002; d=strato.com; h=Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References:Cc:Date: From:Subject:Sender; bh=2fz/AskNtsdKX8o7rnPIKLE1Z6QM6l3vLZ0y11Adi70=; b=F28kxwTtg7KyD/O9nrboUwNDON8lxHzz67M6GPMez3cUFpJ7ELA4xQ0U2BX+lzvm+W epewBLAv0qogZq10ilbJYvKo7q6ozN1m09Ihe/LvALI+PSdEQXG1tRuLLkPkpPBSk3y3 Mts58xgqg1FlRzUi8FguxzW4G9j5Ii5jTGkXAm3mOJtxNgfrkDsr40WKbggARCdIAXPI 3436VtN0ePadQK+/U7ouIodwlal3xw+WNAEEu7J0Vgu/q+znmT4BPKm9pffp4WNFiCEC UoBVZQgkiUyhIpaHcKyLArdt9JwnGJaE7qq1HjTN66Qa82B4gLHRdPkQkeM5TOYjWE1T VZ5w== ARC-Authentication-Results: i=1; strato.com; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1621060562; s=strato-dkim-0002; d=kelunik.com; h=Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References:Cc:Date: From:Subject:Sender; bh=2fz/AskNtsdKX8o7rnPIKLE1Z6QM6l3vLZ0y11Adi70=; b=HKAuJHBXcikUNp1CNxd0Nfj4+u6AviCCo7FAPlxw28XPoGMCJtJlW2s3uC8s90o5U1 pDAqNX42aMIeRA6UCetQbgPCo0WPpL3TnEhdeNbG855Xz2VaPoR6IgI9kWm+AWTljFus 1vhs4jOjOZF08Wwzg0WiRXFfpPJ+B2lVlZDzr+HRuXT52DeWPFT6qVbzOwV6w2AH6OR6 c3pghTmgFpyeeHyMgJEhCYgfh5G22XbagqJsbKqrmNhpv3MkeYTP1QPW685jxoi1mR22 v5FXevEqvRnNdPECv5Z2lvtT4Bem36ApRYlj9BwxsgRCs0si/Q3wJ9n043I7+1lYEuup Tvjw== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":IWkkfkWkbvHsXQGmRYmUo9mlsGbEv0XHBzMIJSS+jKTzde5mDb8AaBAcYyFB" X-RZG-CLASS-ID: mo00 Received: from mail-pj1-f46.google.com by smtp.strato.de (RZmta 47.25.8 AUTH) with ESMTPSA id c09d36x4F6a21WP (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Sat, 15 May 2021 08:36:02 +0200 (CEST) Received: by mail-pj1-f46.google.com with SMTP id k5so941432pjj.1 for ; Fri, 14 May 2021 23:36:01 -0700 (PDT) X-Gm-Message-State: AOAM531w7lSd5dMCbRPHqzQgXqZDT83rmofDZj/Fh6JP+4QDS4ZXp0pd 3MBSkEP2w3vwnIAVpK1IFQk3uRhdC9KDxAJQoJ0= X-Google-Smtp-Source: ABdhPJwnqPmxz3boGsFwSjybAsQHzugeUCHYoFadSsgZT1nmM9S/nWg+pcRS9OhO4v62/LK2Zc4IV9zP4Z/mM3KJtsA= X-Received: by 2002:a17:90b:3781:: with SMTP id mz1mr24900686pjb.92.1621060561100; Fri, 14 May 2021 23:36:01 -0700 (PDT) MIME-Version: 1.0 References: <61a79391-b60f-f00f-c7e7-179071b41cca@gmail.com> In-Reply-To: <61a79391-b60f-f00f-c7e7-179071b41cca@gmail.com> Date: Sat, 15 May 2021 08:35:51 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Rowan Tommins Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000e7662805c2589298" Subject: Re: [PHP-DEV] Disable interactive mode (-a) if readline not available From: me@kelunik.com (Niklas Keller) --000000000000e7662805c2589298 Content-Type: text/plain; charset="UTF-8" Hey all, please remember that you can also use php -r to quickly evaluate expressions, e.g. generating a random password: php -r 'var_dump(bin2hex(random_bytes(16)));' I'm in favor of removal without readline. Best, Niklas Rowan Tommins schrieb am Mi., 12. Mai 2021, 22:46: > On 12/05/2021 17:21, Levi Morrison via internals wrote: > > The interactive shell requires libedit or readline support, which > > this build does not have. > > Run php without -a to get an interactive mode instead. > > > Unless I'm missing something, the default CLI mode (php without -a) is > "interactive PHP" only if you consider "cat > foo.txt" to be an > "interactive editor". You can type a complete script (remembering to > start with " "end of file") and it will execute it, then exit. > > I too have been stung by accidentally triggering this mode without > readline enabled, and would be happy to see Nikita's patch merged. > > Regards, > > -- > Rowan Tommins > [IMSoP] > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --000000000000e7662805c2589298--