Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92743 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68206 invoked from network); 25 Apr 2016 17:49:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Apr 2016 17:49:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=ua.san.alex@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ua.san.alex@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.195 as permitted sender) X-PHP-List-Original-Sender: ua.san.alex@gmail.com X-Host-Fingerprint: 209.85.213.195 mail-ig0-f195.google.com Received: from [209.85.213.195] ([209.85.213.195:34012] helo=mail-ig0-f195.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 62/00-02401-B985E175 for ; Mon, 25 Apr 2016 13:49:15 -0400 Received: by mail-ig0-f195.google.com with SMTP id qu10so11911680igc.1 for ; Mon, 25 Apr 2016 10:49:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=IIBFgwiYj0ozLLSRw5XZfUoB5mhBVfQ+ZCr1hfd5J+w=; b=aysGPqpGIkY/sAvUeb9c/9H0LjKJloAnpZTmGeA8PHXEpJfTBvgzrx2GajBpPALQGd 3Gcp76pG0iEyLzAmD7JB/KSmM+GpB/8er4jRGXyNw/uTjO0NyVKJiO6wsV1dRUkiQRPE hbLRlECdGKVeG0keBrvcJNe+sHm0WciTq6SSwkq9JacsOyZkQYMWa4TkjWffLOkE1Nbg 5oIh2akuMTvrQ4XU2GkccXKabpaBP4BZIOqNmDJ21EP+tk6/AG8v7t/XVdtio+JX8xPE XPZYOEI+pTb2gNdhBrxCtRQOq90dQiSe1fCVf6sLvy4qoiXDyJU+VmLSMif/9mI05YMZ UwaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=IIBFgwiYj0ozLLSRw5XZfUoB5mhBVfQ+ZCr1hfd5J+w=; b=G3Y50yG13rLIl6PYTq7CkTaDkAjspkom/HlrbQc9Ap7Pxj4vkEys+qNoB/r4awik/B 0pb7LT/e0dXg9RBP9xvOxJfQswJwxYBCxjNny+2HnxNoH/VxUfpvaluf8bSIN/h7IBB9 +5yMzJ+oL7vOuCTPbKfGQrMk0CWgyI8M30p0+g50L7y+ScrW3CTNzJIoHS+/a/rsUWqu OlcudzYab1R63nTBosYmIn02udDhZp6zXRVui/w/YCZV8GlddMBJaF0wua54dTaMwkxR kCA3KcBV696nCALbAs6GV1WWn8GOyqFViXSvzCeciiYBPTEVnlszMPtz9UNV1pjFr8jJ Dd+Q== X-Gm-Message-State: AOPr4FUvYVISK1KGK1NBYZJWrp7erS3zA/wL+riHPG//Kkwgb90WAEceOBQZMNZLkmKNW2xROg1gTkF3GkkvTw== MIME-Version: 1.0 X-Received: by 10.50.28.42 with SMTP id y10mr14243914igg.24.1461606553144; Mon, 25 Apr 2016 10:49:13 -0700 (PDT) Received: by 10.50.54.201 with HTTP; Mon, 25 Apr 2016 10:49:13 -0700 (PDT) In-Reply-To: <571E2B75.6000909@gmail.com> References: <571E2B75.6000909@gmail.com> Date: Mon, 25 Apr 2016 20:49:13 +0300 Message-ID: To: Rowan Collins Cc: internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Opcache::get($key), set($key, $value) to shared memory, is planned in PHP 7.1? From: ua.san.alex@gmail.com ("S.A.N") 2016-04-25 17:36 GMT+03:00 Rowan Collins : > S.A.N wrote on 25/04/2016 15:09: >> >> In userland lacks the ability to store data in the shared memory >> modules, do not use pecl modules, it would be very nice to have a >> function: >> >> opcache_get($key); >> opcache_set($key, $value); >> >> Is planned in PHP 7.1? >> > > This was identified as a difference between APC and OpCache when the latter > was added to core several releases ago, and that's exactly why APCu exists: > http://php.net/apcu > > There's not really a huge connection between opcode caching and optimization > (OpCache) and shared memory data caches (APCu, memcached, etc), so I don't > think there's any particular logic to calling such functions "opcache". > > So I guess the question becomes: "should APCu be made part of core?" I'm not > aware of anyone having proposed that, so don't know if there are strong > feelings for or against such a thing. Yes, there are a lot of libraries to work with shared memory, but why should they if there OPcache in core PHP? Functions get, set key values will be useful and in demand.