Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47079 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83517 invoked from network); 1 Mar 2010 22:27:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Mar 2010 22:27:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=tony@daylessday.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tony@daylessday.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain daylessday.org designates 89.208.40.236 as permitted sender) X-PHP-List-Original-Sender: tony@daylessday.org X-Host-Fingerprint: 89.208.40.236 mail.daylessday.org Linux 2.6 Received: from [89.208.40.236] ([89.208.40.236:49898] helo=daylessday.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 27/FC-16552-94F3C8B4 for ; Mon, 01 Mar 2010 17:27:22 -0500 Received: from [192.168.1.2] (ppp91-77-178-7.pppoe.mtu-net.ru [91.77.178.7]) by daylessday.org (Postfix) with ESMTPSA id 964FABFA08B for ; Tue, 2 Mar 2010 01:27:17 +0300 (MSK) Message-ID: <4B8C3F45.2080502@daylessday.org> Date: Tue, 02 Mar 2010 01:27:17 +0300 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100111 SUSE/3.0.1-1.2 Thunderbird/3.0.1 MIME-Version: 1.0 To: internals@lists.php.net References: <3B776C158D8E4D8D8DEB11A9860B6734@pc> In-Reply-To: <3B776C158D8E4D8D8DEB11A9860B6734@pc> Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Scary note for gettype() in docs From: tony@daylessday.org (Antony Dovgal) On 03/01/2010 11:35 PM, Stan Vassilev wrote: > > Hi, > > The gettype() documentation warns people that the returned string is "subject 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