Ok, that's fine, thanks.

1) If I define a collator $coll, and then I reassign $coll to something else
(perhaps another collator)
is the original collator stored in $coll left in memory or will it get
cleaned up at some point?

2) Should we consider any functions useful for debugging memory leaks?
I have in mind something like collator_count() to return a count of the
existing collators.
I know about get_defined_vars() but I was thinking the collators might
become separated from a variable and then be lost...

tex
 

-----Original Message-----
From: Stanislav Malyshev [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 18, 2007 12:13 AM
To: [EMAIL PROTECTED]
Cc: php-i18n@lists.php.net; 'Hardik'
Subject: Re: [PHP-I18N] PHP intl APIs - part 1

> We need some close or release API.
> 
> If I have a multilingual app, I will create a new collator for the 
> user's language.
> I need to close it, or the app will accumulate many collators.

Right now I think once the variable is unset, the collator would be freed.
--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

-- 
PHP Unicode & I18N Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to