Hi!

On 7/20/11 4:25 AM, Richard Quadling wrote:
As several extensions have had to implement these #defines to
distinguish between the different zend engine versions, should these
"level playing field" macros be moved (and completed) form the
extension to core?

If you're talking about ZEND_CE_FILENAME and similar ones, we could add it into 5.4, but we couldn't retroactively add it to existing PHP sources, so you'd have to ifdef in your extension anyway. At which point adding it into 5.4 becomes kind of useless.
So if you have any idea of how that would be useful please explain.

If you're talking about ZEND_ENGINE_2_4 macro, we could have it, though ZEND_MODULE_API_NO is more precise and safe to use. The problem is now that many modules have added it, adding it in core would actually make those modules issue warnings, so I'm not sure we actually should do it :)
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to