jasonistaken wrote:
> 
> On 02/06/2009 11:49 PM, Mary Nicole Hicks wrote:
> 
>>
>> When I use Zend_Uri_Http::check($string)
>> Which Uses: Zend_Validate_Hostname
>> Which Uses: Zend_Validate_Abstract
>> Which Uses: Zend_Registry?
>>
> Well, the abstract validation class facilitates automatic error message
> translation, if you're using 
> a translator. It simply checks a few common places to see if there is a
> translation instance 
> registered; one of these being Zend_Registry.
> 
> I agree it's somewhat unfortunate that there are these occasional registry
> lookups....
> 
> 

If ZF is looking for an item in the Zend_Registry, can't it first check that
the Zend_Registry class exists with class_exists('Zend_Registry', FALSE); ?
Obviously if the class does not exist then there would be no reason to cause
it be instantiated.

-- 
View this message in context: 
http://www.nabble.com/Do-I-have-to-use-Zend_Registry%2C-Zend_Locale-and-Zend_Config-if-I-use-ZF--tp23846280p23847576.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to