Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend_ini.h

From: Date: Fri, 03 Aug 2007 16:36:05 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend_ini.h
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-31437@lists.php.net to get a copy of this message
However are there any plans to add a symbol or something else so that a PHP extension can detect the support for this feature at runtime?
Hmm... I'm not sure how to do it best for the extension. I checked core extensions and they don't use INI stages in a way that this change can break them, and if an extension would use new stage, it still would load with older PHP - even though the check for the new stage won't ever work, of course. If there's an extension which uses INI_STAGE_ACTIVATE and needs to support new htaccess stage, it can be fixed in source so check for this stage too - but I didn't see such extensions yet. Now, if you do need to detect if the functionality at runtime and do something meaningful basing on its presence or absence - I'm not sure how to do it. Any ideas? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#31437) next »