Re: Scary note for gettype() in docs

From: Date: Tue, 02 Mar 2010 10:54:55 +0000
Subject: Re: Scary note for gettype() in docs
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-47083@lists.php.net to get a copy of this message
On 2 March 2010 10:25, Derick Rethans <derick@php.net> wrote: > On Tue, 2 Mar 2010, Victor Bolshov wrote: > >> From the user point of view it might seem that 5.x "string" and 6.x >> "unicode" are all strings, whatever you call them. Still, I am sure >> there _is_ a background for the decision to distinguish between >> "string" and "unicode". > > Yes, there *has* to be a difference between "string" and "unicode" > because otherwise you can't distinguish between binary goo and strings. > > Derick > > -- > http://derickrethans.nl | > http://xdebug.org > twitter: @derickr > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > So <PHP6, "this" is a string and in PHP6+ u"this" is a string and "this" would be binary? If PHP6 is unicode, then unicode strings are now the "normal" strings. Binary strings are just binary data now. Maybe "string" and "binary string" rather than "unicode" and "string". So "string" is consistent across the PHP versions. -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling

« previous php.internals (#47083) next »