Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65807 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70303 invoked from network); 13 Feb 2013 21:42:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Feb 2013 21:42:51 -0000 Authentication-Results: pb1.pair.com header.from=pierrick@webstart.fr; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=pierrick@webstart.fr; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain webstart.fr from 209.85.223.173 cause and error) X-PHP-List-Original-Sender: pierrick@webstart.fr X-Host-Fingerprint: 209.85.223.173 mail-ie0-f173.google.com Received: from [209.85.223.173] ([209.85.223.173:57341] helo=mail-ie0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 70/01-62947-9D80C115 for ; Wed, 13 Feb 2013 16:42:50 -0500 Received: by mail-ie0-f173.google.com with SMTP id 9so2387017iec.18 for ; Wed, 13 Feb 2013 13:42:47 -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=txDzqGfVntsqjHSBkDBSpaMVE4oyOyPL9m9c3WUk6Zk=; b=aYHYD+RVERja3oJdXGYwMtlOTuojFNUjh/giiSxvoMChX9xrFxiQaS6I9k9OMDOM5z 9hqT24OyBWz0k/NHX9oNDl2zfxXz0ki4d/kly4JjukR8aMej1w8MW2Dykl6vdrzX5ZwO B2aOYOxyJ/ndPE7PJvgp5lHzlgAUs3bxka35F4tR7lI8QWAJVeLSy68gGdVlONS4UdjV jqClWzXQMyQ2NzBzOHK6IdHE728tKO59YWAyd+iHt6IoH09o8pAvtnitGn2Jv73aUG9s McoY16m2wmE5ckenjqI2Q0LskOYZs1MTxqetuK3PX6jKONghYrVyf9ikrNZfGRzCG1za 8+tg== MIME-Version: 1.0 X-Received: by 10.50.217.226 with SMTP id pb2mr13904469igc.31.1360791766854; Wed, 13 Feb 2013 13:42:46 -0800 (PST) Received: by 10.64.33.43 with HTTP; Wed, 13 Feb 2013 13:42:46 -0800 (PST) In-Reply-To: References: Date: Wed, 13 Feb 2013 16:42:46 -0500 Message-ID: To: Zeev Suraski Cc: PHP internals Content-Type: multipart/alternative; boundary=14dae9340ab9e06b0804d5a205db X-Gm-Message-State: ALoCoQnFFztJWXbtninBxTBb5sUmh8r4nx36E4Ymd0Nm7bEfdMuphNjPjNdvVt2MAi0SrPoaamvB Subject: Re: [PHP-DEV] Zend Optimizer+ Source Code now available From: pierrick@webstart.fr (Pierrick Charron) --14dae9340ab9e06b0804d5a205db Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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 environment. 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=92ve put it under the PHP license, with the same PHP Group copyright > header as all files in PHP. > > > > As per Derick=92s idea, we can arrange a webinar for those interested in > better understanding how it works. Note that this will not be a webinar > for the faint of heart =96 opcode caches are complicated pieces of softwa= re; > Attendees should have very good engine-development knowledge to have a go= od > chance of understanding what=92s going on=85 Stas =96 your help in that = webinar > would be very welcome J > > > > Zeev > --14dae9340ab9e06b0804d5a205db--