On Wed, 2005-08-24 at 18:30 +0300, Stanislav Malyshev wrote: > JC>>> Maybe we can give extensions a way to indicate that they're Unicode > JC>>> compatible, and assume they're not if they don't. Non-compatible > JC>>> extensions will not be loaded and produce an error. > JC>> > JC>>Not to hijack the topic, but if we are going to do something like this > JC>>why not also provide these sorts of flags for things like extensions and > JC>>thread safety? > > I'm not sure I have understood what you were meaning, but we have > thread_safe and debug flags in extension structure, so I thing the good > way would be to add one more flag - e.g., unicode_support - to this > structure, and make ZEND_EXTENSION macro to set it to 0, and new > ZEND_UNICODE_EXTENSION() to set it to 1. So, by default all extensions > would not support Unicode. If you want it to support unicode you (if > needed) fix whatever needs to be fixed and then replace ZEND_EXTENSION > with ZEND_UNICODE_EXTENSION.
That's basically what I'm saying, I guess maybe this is a PHP 6.0 wishlist sort of thing -- I'd like to see PHP when operating in thread safety mode be very unhappy loading extensions not flagged thread safe. John -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php