Re: Zend Extension - zend_compile_file - interoperability?

From: Date: Thu, 29 Jul 2010 01:18:50 +0000
Subject: Re: Zend Extension - zend_compile_file - interoperability?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-49157@lists.php.net to get a copy of this message
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

« previous php.internals (#49157) next »