Re: Unicode-compatible extensions

From: Date: Wed, 24 Aug 2005 23:27:05 +0000
Subject: Re: Unicode-compatible extensions
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  Groups: php.internals 
Request: Send a blank email to internals+get-18389@lists.php.net to get a copy of this message
Problem is that some extensions that don't "support" Unicode will still work. Extensions like gd might "almost" work out of the box. At 08:36 AM 8/24/2005, John Coggeshall wrote:
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


« previous php.internals (#18389) next »