php-i18n Digest 28 Aug 2007 00:46:08 -0000 Issue 368

Topics (messages 1117 through 1118):

Re: Re-opening of bug #18556
        1117 by: Tomas Kuliavas

Re: Regarding Collator Object Cleanup
        1118 by: Hardik Patel

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
> there are also other reports an this issue. The Problem is the capital
> "I" with the fact that strtolower("I") != "i" in a tr_TR locale. This
> will change with PHP 6's Unicode mode but won't change with PHP 5. As
> work-around use "i" instead of "I" in the names.

Which part breaks if you fix zend_tolower() function? It is already
locale insensitive on Windows.

I've checked PHP5.2 and 6 snapshots compiled with './configure
--prefix=/some/path --with-config-file-path=/some/path'

'make test' does not show new issues.

In PHP6-200708151230 fixed interpreter lost 3% of performance in 'make
test' and 6% in Zend/bench.php tests. Fixed PHP5.2-200708211630 and
PHP6-200708211630 are even a bit faster on 'make test' and Zend/bench.php.

-- 
Tomas

--- End Message ---
--- Begin Message ---
FYI

 

  _____  

From: Hardik Patel [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 28, 2007 3:48 AM
To: 'Vadim Savchuk'
Cc: 'Hardik Patel'
Subject: RE: Regarding Collator Object Cleanup

 

Ah!

 

After checking latest source code of php extension, I got 1 place where
ucol_close() is invoked (within collator_object_destroy).

 

I am just concerned whether this be called for both object oriented usage as
well as procedural usage?

 

I mean, will this be called in following cases;

 

a)       While using *collator_create()* API - Procedural approach

b)      While using *new Collator("en_US")* API - OO approach

 

Thanks,
Hardik

 

  _____  

From: Hardik Patel [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 28, 2007 3:35 AM
To: 'Vadim Savchuk'
Subject: Regarding Collator Object Cleanup

 

Hi Vadim,

 

(Hope you are the right person to pose this query)

 

I went through PHP extension's code (which in turn uses ICU collation C
APIs). This is what I observed:

 

a)       There are two APIs that invoke ucol_open() of ICU library. They
are: *PHP_METHOD( Collator, __construct )* and *PHP_FUNCTION(
collator_create )*

 

I was not able to find a place where ucol_close() is called by extension
code. Could you point me to the place in your extension code that invokes
ucol_close() or does the cleanup job (both for procedural and OO approach)?

(needed to ensure graceful cleanup of ICU collator objects)

 

 

Thanks,
Hardik


--- End Message ---

Reply via email to