Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75758 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69978 invoked from network); 21 Jul 2014 09:50:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2014 09:50:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=saprykin.dmitry@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=saprykin.dmitry@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.53 as permitted sender) X-PHP-List-Original-Sender: saprykin.dmitry@gmail.com X-Host-Fingerprint: 209.85.213.53 mail-yh0-f53.google.com Received: from [209.85.213.53] ([209.85.213.53:50146] helo=mail-yh0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/E3-51736-962ECC35 for ; Mon, 21 Jul 2014 05:50:33 -0400 Received: by mail-yh0-f53.google.com with SMTP id c41so3830984yho.26 for ; Mon, 21 Jul 2014 02:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=KlN1daJE5BrRlZTaIyt8qzLTChr50CbourlbMP5vjL8=; b=CqQ8lP+KkNqhYFvw+GUYZ5fIuyKFBNYkqdI7lhWqrznwMzW3N21kedxuNnO7oMmCPm LXp/UJ2Jjssjw6/5wXmr7tjKg+nyhvdAEO7frM3C6kfISgJc5nZ8PH6m24q8PNNtUpF/ x+EFha6CkBwTxgIkopuXsNEms2Xtcyt4zNgXGXaaMKSXA6T/JtpIuXZSglZnFBIt5TRj yx4MUsW4pqDBeYUXhkewJVqTueC/E9GxGJ9ln3vYQcVkPRA2ozaX71VMa3vSytClBoYM S3kKNxw77WBO3ISyU6j2QWxUSoRCg7FVl73ZAJe+c9OkCvGWVsvSN7a+MERwZcKlDdfW HvGQ== X-Received: by 10.236.26.172 with SMTP id c32mr14688969yha.145.1405936230459; Mon, 21 Jul 2014 02:50:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.170.191.67 with HTTP; Mon, 21 Jul 2014 02:50:10 -0700 (PDT) In-Reply-To: References: Date: Mon, 21 Jul 2014 13:50:10 +0400 Message-ID: To: Michael Wallner Cc: Yasuo Ohgaki , PHP Internals Content-Type: multipart/alternative; boundary=047d7b67697c97ed5c04feb109f4 Subject: Re: [PHP-DEV] php interactive shell: save history on SIGINT exit From: saprykin.dmitry@gmail.com (Dmitry Saprykin) --047d7b67697c97ed5c04feb109f4 Content-Type: text/plain; charset=UTF-8 Ok, I will NOT )) God saves us from bureaucracy On 21 July 2014 13:46, Michael Wallner wrote: > > On 21 Jul 2014 11:24, "Yasuo Ohgaki" wrote: > > > > Hi all, > > > > On Mon, Jul 21, 2014 at 6:12 PM, Dmitry Saprykin < > saprykin.dmitry@gmail.com> > > wrote: > > > > > Php interactive shell saves commands history when you exit it using > 'quit'. > > > But it throws all you history away when you exit using Ctrl+C. It is > common > > > practice to save history on SIGINT exit (mysql, mongo, etc.) > > > > > > I would like to implement SIGINT handler for interactive shell to save > > > history on Ctrl+C exit. > > > > > > Threre is request on bugs.php.net for this feature > > > https://bugs.php.net/bug.php?id=67496. > > > I have created pull request https://github.com/php/php-src/pull/727 > but > > > was advised to create RFC to discuss this change. > > > > > > So could you provide some feedback. > > > > > > > Isn't it nicer to treat this kind of change as simple bug fix/feature > > implementation? > > It's common behavior and there is no compatibility issue at all. > > > > Yes, please do NOT create a RFC for each and every tiny feature. Just find > someone to review and eventually merge your patch! > --047d7b67697c97ed5c04feb109f4--