Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49157 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78678 invoked from network); 29 Jul 2010 01:18:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jul 2010 01:18:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.183 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.183 smtp183.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.183] ([67.192.241.183:48232] helo=smtp183.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CB/F7-21430-EF6D05C4 for ; Wed, 28 Jul 2010 21:18:55 -0400 Received: from relay8.relay.dfw.mlsrvr.com (localhost [127.0.0.1]) by relay8.relay.dfw.mlsrvr.com (SMTP Server) with ESMTP id C401D404EC; Wed, 28 Jul 2010 21:18:51 -0400 (EDT) Received: by relay8.relay.dfw.mlsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 6C37E404F1; Wed, 28 Jul 2010 21:18:51 -0400 (EDT) Message-ID: <4C50D6FA.40404@sugarcrm.com> Date: Wed, 28 Jul 2010 18:18:50 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 MIME-Version: 1.0 To: Jonathan Bond-Caron CC: "internals@lists.php.net" References: <001e01cb2eb8$a0928c50$e1b7a4f0$@com> In-Reply-To: <001e01cb2eb8$a0928c50$e1b7a4f0$@com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Zend Extension - zend_compile_file - interoperability? From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > I've starting playing around with the zend engine, > > is there any hope / plans for better interoperability with how > zend_compile_file() should be extended? > > The goal being to reduce the amount of "X is not compatible with Y". In most cases, overriding zend_compile_file() and calling previous handler should be enough. If it doesn't work of soe special modifications then additional handlers might not help either. Compatibility problems can arise from something like extension X (e.g. bytecode cache) expects certain structures to reside in shared memory for performance reasons while extension Y modifying them since it doesn't know anything about extension X. > # Bytecode loaders / optimizers / dumpers (zend optimizer, ioncube loader, > vld, etc.) Those should use other handlers, such as op array ctor/dtor/handler. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227