Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47080 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45029 invoked from network); 2 Mar 2010 05:33:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Mar 2010 05:33:39 -0000 Authentication-Results: pb1.pair.com header.from=crocodile2u@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=crocodile2u@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.152 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: crocodile2u@gmail.com X-Host-Fingerprint: 72.14.220.152 fg-out-1718.google.com Received: from [72.14.220.152] ([72.14.220.152:50863] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/44-19085-133AC8B4 for ; Tue, 02 Mar 2010 00:33:38 -0500 Received: by fg-out-1718.google.com with SMTP id e21so35096fga.11 for ; Mon, 01 Mar 2010 21:33:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=vDO8UbJ2rplzE7faJEKQ1nGD55xwKRgsK+KnLOc8oiA=; b=aPC1IkXMqLhLz/dk78lrxBcKFuFK50iqMWxfELrAEt2Q1ROhqDr0XM6sC6aibkN11J tVjfNYcnJgOfi2kmAudeG9JxhERk5qEaDuIBX3/xRfHzTKkoa6U8w9ZjJtwmKGB6eEm5 G2gtMBb6fjRc5fMH98tDDiEyHqYqsLTyDZ7v8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=VTghpW36ZI1wGrjcGiib/DKk6Et5lUPbDXEwjUbRPRDW46c4CCMw60JmtnpjrWhZ// 7Ch3FiskWx7IFn/NkYlRIdA89wWDSUN43V5OcXxp3AqgHKyVYvMlLkVH9PvjrrkQail+ G1qGYcA8gz9q4crPw7AW0tvgz5bcVbcNEjIZo= MIME-Version: 1.0 Received: by 10.103.126.29 with SMTP id d29mr4395279mun.28.1267508012705; Mon, 01 Mar 2010 21:33:32 -0800 (PST) In-Reply-To: <4B8C3F45.2080502@daylessday.org> References: <3B776C158D8E4D8D8DEB11A9860B6734@pc> <4B8C3F45.2080502@daylessday.org> Date: Tue, 2 Mar 2010 08:33:32 +0300 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Scary note for gettype() in docs From: crocodile2u@gmail.com (Victor Bolshov) 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". 2 =CD=C1=D2=D4=C1 2010 =C7. 1:27 =D0=CF=CC=D8=DA=CF=D7=C1=D4=C5=CC=D8 Anton= y Dovgal =CE=C1=D0=C9=D3=C1=CC: > On 03/01/2010 11:35 PM, Stan Vassilev wrote: >> >> Hi, >> >> The gettype() documentation warns people that the returned string is "su= bject to change". >> Why is there a function that's subject to change in the API? > > Because life is complicated. > Because gettype("test") returns "string" in 5.x and "unicode" in 6.0. > > What exactly are you trying to fix? And what exactly are you proposing? > > -- > Wbr, > Antony Dovgal > --- > http://pinba.org - realtime statistics for PHP > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD, =F7=C9=CB=D4=CF=D2