Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75747 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53041 invoked from network); 21 Jul 2014 09:12:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2014 09:12:50 -0000 Authentication-Results: pb1.pair.com header.from=saprykin.dmitry@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=saprykin.dmitry@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.176 as permitted sender) X-PHP-List-Original-Sender: saprykin.dmitry@gmail.com X-Host-Fingerprint: 209.85.160.176 mail-yk0-f176.google.com Received: from [209.85.160.176] ([209.85.160.176:41278] helo=mail-yk0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 62/10-51736-199DCC35 for ; Mon, 21 Jul 2014 05:12:49 -0400 Received: by mail-yk0-f176.google.com with SMTP id 19so3707355ykq.35 for ; Mon, 21 Jul 2014 02:12:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=CtOzNTaJ9zzEQa76bSABR0tOEgqXf/dqE+OeJ9kk880=; b=Q5w0XmwMcwUCjB2LEYNIlBxmneSZeOhYd2/3Ax4s56T0BWCKw6sCDUpz3ih1mrCfda xdixpHj7Lr1d0/KO9UazkbgbOBnkByJuwSDBf2w5EiCCq8rqQubN6CBP19zgqwO24v1I VFx4JGiYk08ITUJssMSFT9/m/Np0F8pmCFluMVmq70Z8mxvE4o8LCEkPQctTHAsN+i7z keuXE3q2SrRuuC3wAnEr3nHCA28zMcJ3kUh5TY5hyeGLJFi71MHS1zlT7zPwmJeGEP8H JWA4IIbHOeAJQ4RfOlWPeoHY6nX5DGCmxLNxx1M0M2SOTQqoAtSiKBA0HJhJym/tOUpF sZzA== X-Received: by 10.236.45.10 with SMTP id o10mr37677212yhb.49.1405933966367; Mon, 21 Jul 2014 02:12:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.170.191.67 with HTTP; Mon, 21 Jul 2014 02:12:26 -0700 (PDT) Date: Mon, 21 Jul 2014 13:12:26 +0400 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=089e011615fca4a17504feb082dc Subject: php interactive shell: save history on SIGINT exit From: saprykin.dmitry@gmail.com (Dmitry Saprykin) --089e011615fca4a17504feb082dc Content-Type: text/plain; charset=UTF-8 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. Kind regards, Dmitry Saprykin --089e011615fca4a17504feb082dc--