Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84344 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69153 invoked from network); 5 Mar 2015 16:13:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Mar 2015 16:13:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=zardozrocks@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=zardozrocks@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.169 as permitted sender) X-PHP-List-Original-Sender: zardozrocks@gmail.com X-Host-Fingerprint: 209.85.223.169 mail-ie0-f169.google.com Received: from [209.85.223.169] ([209.85.223.169:37439] helo=mail-ie0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/65-40418-E8088F45 for ; Thu, 05 Mar 2015 11:13:02 -0500 Received: by iebtr6 with SMTP id tr6so4563928ieb.4 for ; Thu, 05 Mar 2015 08:12:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=xYEKQA1opPouRlBCrssEThwzxKh4TJNZMgVsHzoHKUs=; b=puCik1n2ki2a3oZzEK9ynSgCnJNOtS9I75wZYxjf/AGgLgt3TPAEI1sTgS+39farzw SzXfGXggoJQgPe3P8SMTBKwl8cmvB968ozP6UbiLB0WTekv8HnszsFhsxCNGcNDFiU3a +v/2Z71RXVGs7NlnEwea3dZo2qOiDbIAuj6vSmGYU/XFRF0Tq478aQdrizPtK2wjvQ1g 41ENi5T9eaff4E0V7elqbrAc4409nprjlpjrCQRq9GXbPg7RcOERa7ZK+Dhhljsknat2 GP3xVn2lDiL8tZL3Shjh/2A9UxagpFnLzPGdVAQqg2u2zTh+FdY129ruEUeTB8vOU7tH A4CA== MIME-Version: 1.0 X-Received: by 10.107.155.131 with SMTP id d125mr21522310ioe.17.1425571978627; Thu, 05 Mar 2015 08:12:58 -0800 (PST) Received: by 10.107.137.196 with HTTP; Thu, 5 Mar 2015 08:12:58 -0800 (PST) Date: Thu, 5 Mar 2015 08:12:58 -0800 Message-ID: To: internals Content-Type: multipart/alternative; boundary=001a1140aace634eca05108cd787 Subject: Is OpCache enabled by default in php 5.5 and later or not? From: zardozrocks@gmail.com (j adams) --001a1140aace634eca05108cd787 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I don't know if this is a question for the documentation team or not, but figured I'd start here. There does not appear to be any definitive, clear, reliable information on PHP's op caching functionality in recent 5.* versions and this problem needs to be remedied. Question 1: Is OpCache enabled by default in php 5.5 and later or not? This page: http://php.net/manual/en/intro.opcache.php says "This extension is bundled with PHP 5.5.0 and later, and is =C2=BB available in PECL for PHP versions 5.2, 5.3 and 5.4." But this page: http://php.net/manual/en/opcache.installation.php says "PHP 5.5.0 and later OPcache can only be compiled as a shared extension. If you have disabled the building of default extensions with --disable-all , you must compile PHP with the --enable-opcache option for OPcache to be available. Once compiled, you can use the zend_extension configuration directive to load the OPcache extension into PHP. This can be done with zend_extension=3D/full/path/to/opcache.so on non-Windows platforms, and zend_extension=3DC:\path\to\php_opcache.dll on Windows." Question 2: If OpCache is enabled, does it require any php.ini settings or not? Does it show any functions or constants or phpinfo() that will reveal its existence? I've got php 5.6.6 installed on CentOS 7 and I can find neither hide nor hair of it. There is, however, an opcache package one can install (php56u-opcache.x86_64 in my case). Question 3: What about Zend Optimizer? Still other articles say it has been integrated into php 5.5 and later, but this mythical beast also makes no sign to indicate its inclusion either. Some articles: https://wiki.php.net/rfc/optimizerplus https://wordpress.org/support/topic/looking-ahead-to-php-55-zend-optimizer-= the-end-of-apc http://www.internetnews.com/blog/skerner/php-5-5-to-include-open-source-zen= d-optimizer-.html Seems to me there is currently a lot of confusion surrounding OPCache and it should be cleared up. --001a1140aace634eca05108cd787--