Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65810 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2585 invoked from network); 14 Feb 2013 07:38:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Feb 2013 07:38:05 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain zend.com does not designate 209.85.219.52 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.219.52 mail-oa0-f52.google.com Received: from [209.85.219.52] ([209.85.219.52:32934] helo=mail-oa0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/A2-13268-B549C115 for ; Thu, 14 Feb 2013 02:38:04 -0500 Received: by mail-oa0-f52.google.com with SMTP id k14so2168003oag.25 for ; Wed, 13 Feb 2013 23:38:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=yO9V+8ALHjP+IbxaLxU/NRj6vOjYooWcWyqIWzAVyWE=; b=GAtwrkWL6ESVnuNbbeBLoBOfRdXBcXm6bOXlsVOAHc+ug5cP0lZRzoE/Ji0wo1oHsz HCcwhA0cgttkBsXJW6CX8y8qBJkgvuPm9WzdSx0tx/OT1Bsbkcd+1JcQ47RScFICu2iF djY5/KF1fgT6krFDQwr9Rs8U8JUWas7cLZRGjSVRMmTiNxGtmNxl+4BrJ6HPTmOc46Uf vQAIEcXWTT9kBhf9tZr8Y3NobpYyA+CFRNFpdaUrQYLZrT9X7Zxzpn05ODkg/9g+GVUM GPFSS3xbpe3SrJj3lSFRrRTgIDlPSRysZHaH8meSNSoLarpAO1/rmp6/ZH71AQ3ZHyEb dhZQ== MIME-Version: 1.0 X-Received: by 10.60.5.231 with SMTP id v7mr18825582oev.62.1360827480692; Wed, 13 Feb 2013 23:38:00 -0800 (PST) Received: by 10.182.17.104 with HTTP; Wed, 13 Feb 2013 23:38:00 -0800 (PST) In-Reply-To: References: Date: Thu, 14 Feb 2013 10:38:00 +0300 Message-ID: To: Pierrick Charron Cc: Zeev Suraski , PHP internals Content-Type: multipart/alternative; boundary=e89a8ff2535096584f04d5aa5634 X-Gm-Message-State: ALoCoQkMutHOnD8Udxe66SmYR0EhrkQtEBnR87Goh27+zPpYtrrJMIp2kr4U6oL7eoVt4WbzsVUB+G4fCYOT/wGMJcRPSsLHerRxZUsSscUsFhxrMpVFI2K98nSiBRJQoJ10sc8T57Md Subject: Re: [PHP-DEV] Zend Optimizer+ Source Code now available From: dmitry@zend.com (Dmitry Stogov) --e89a8ff2535096584f04d5aa5634 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Pierrick, We didn't use ZTS in Zend commercial products, so it wasn't tested for a long time. O+ may definitely have some ZTS related problems. Please, report an issue at https://github.com/zend-dev/ZendOptimizerPlus/issues I'll look into it later Thanks. Dmitry. On Thu, Feb 14, 2013 at 1:42 AM, Pierrick Charron wro= te: > Hi, > > I tried to install the ZendOptimizer+ provided earlier today but wasn't > able to make it work. I compiled it with success but when I looked at the > phpinfo(); I had this : > > Opcode Caching Disabled > Optimization Enabled > Startup Failed no value > > I'm using the apache2handler (MPM Worker - multi-threaded), PHP Version > 5.4.13-dev. > > Here's my configure : > > './configure' '--enable-debug' '--enable-bcmath' '--enable-calendar' > '--enable-gd-native-ttf' '--enable-maintainer-zts' '--enable-mbstring' > '--enable-soap' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' > '--enable-zip' '--with-apxs2=3D/usr/bin/apxs2' > '--with-config-file-path=3D/etc/php5/PHP-5.4' > '--with-config-file-scan-dir=3D/etc/php5/PHP-5.4/conf.d' '--with-curl' > '--with-freetype-dir=3D/usr/lib' '--with-gd' '--with-jpeg-dir' > '--with-kerberos' '--with-mcrypt' > '--with-mysql-sock=3D/var/run/mysqld/mysqld.sock' '--with-mysql=3Dmysqlnd= ' > '--with-mysqli=3Dmysqlnd' '--with-openssl' '--with-pdo-mysql=3Dmysqlnd' > '--with-png-dir' '--with-readline' '--with-xsl' '--with-zlib-dir' > > I only added the zend_extension line in my php.ini file. > > I tried to look at the log but did not found anything that could explain > why the Startup Failed. I looked a little bit at the code and > the accel_startup worked as expected at the apache start > and ZCG(startup_ok) was equal to 1 at the end of it. I'm suspecting that = my > problem is related to the fact that I'm using a multi-threaded environmen= t. > Could it be because the startup_ok variable is in the zend_accel_globals > structure and not in the zend_accel_shared_globals ? And that a > new zend_accel_globals is created for my request where the startup_ok is > not 1 ? > > If you have any idea of anything I could have done wrong please let me > know. Also if you need more informations just ask and I'll try to provide > them to you. > > Thanks for the help ! > Pierrick > > On 13 February 2013 09:51, Zeev Suraski wrote: > > > For your browsing pleasure: > > > > > > > > https://github.com/zend-dev/ZendOptimizerPlus/ > > > > > > > > An initial README with some instructions is available at > > http://bit.ly/VSs5KC > > > > We=E2=80=99ve put it under the PHP license, with the same PHP Group cop= yright > > header as all files in PHP. > > > > > > > > As per Derick=E2=80=99s idea, we can arrange a webinar for those intere= sted in > > better understanding how it works. Note that this will not be a webina= r > > for the faint of heart =E2=80=93 opcode caches are complicated pieces o= f > software; > > Attendees should have very good engine-development knowledge to have a > good > > chance of understanding what=E2=80=99s going on=E2=80=A6 Stas =E2=80= =93 your help in that > webinar > > would be very welcome J > > > > > > > > Zeev > > > --e89a8ff2535096584f04d5aa5634--