Hi Derick,

As you remember, on PDM we deside to remove IS_BINARY data type and change
symantic of IS_STRING to IS_BINARY in unicode mode.
This patch is long delayed finalization of planned change.
PHP array should be able to have unicode and binary keys, and binary values
shouldn't be converted to unicode.

$ php -d "unicode.semantics=1" -r 'var_dump(array(b"foo"=>b"foo",
"bar"=>bar));'

Removing this autoconversion makes programmer's life little bit more
difficult. :(

Thanks. Dmitry.

> -----Original Message-----
> From: Derick Rethans [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, September 19, 2006 3:43 PM
> To: Dmitry Stogov
> Cc: php-cvs@lists.php.net
> Subject: Re: [PHP-CVS] cvs: php-src /ext/date php_date.c 
> /ext/dom node.c /ext/filter logical_filters.c /ext/session 
> session.c /ext/simplexml simplexml.c /ext/soap php_encoding.c 
> php_packet_soap.c soap.c /ext/sqlite sqlite.c /ext/standard ba
> 
> 
> On Tue, 19 Sep 2006, Dmitry Stogov wrote:
> 
> > dmitry              Tue Sep 19 10:38:32 2006 UTC
> > 
> >   Modified files:              
> >     /ZendEngine2    zend_API.c zend_API.h zend_builtin_functions.c 
> >                     zend_compile.c zend_exceptions.c 
> zend_execute_API.c 
> >                     zend_hash.c zend_hash.h 
> zend_operators.c zend_vm_def.h 
> >                     zend_vm_execute.h zend_vm_execute.skl 
> >     /php-src/ext/date       php_date.c 
> >     /php-src/ext/dom        node.c 
> >     /php-src/ext/filter     logical_filters.c 
> >     /php-src/ext/session    session.c 
> >     /php-src/ext/simplexml  simplexml.c 
> >     /php-src/ext/soap       php_encoding.c php_packet_soap.c soap.c 
> >     /php-src/ext/sqlite     sqlite.c 
> >     /php-src/ext/standard   basic_functions.c datetime.c 
> dns.c file.c 
> >                             filestat.c http_fopen_wrapper.c image.c 
> >                             info.c iptc.c microtime.c 
> proc_open.c scanf.c 
> >                             streamsfuncs.c string.c url.c 
> >     /php-src/ext/zlib       zlib.c 
> >     /php-src/main   main.c output.c php_variables.c 
> >     /php-src/main/streams   filter.c memory.c streams.c 
> unicode_filter.c 
> >                             userspace.c xp_socket.c 
> >   Log:
> >   Disabled autoconversion of hash keys (from string to unicode) for 
> > PHP arrays
> 
> Why did you do this, or atleast what was the rationale for 
> changing it 
> in ext/date?
> 
> regards,
> Derick
> 
> -- 
> Derick Rethans
> http://derickrethans.nl | http://ez.no | http://xdebug.org
> 
> -- 
> PHP CVS Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

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

Reply via email to