Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47074 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65257 invoked from network); 1 Mar 2010 20:35:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Mar 2010 20:35:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=sv_forums@fmethod.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sv_forums@fmethod.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fmethod.com from 69.16.228.148 cause and error) X-PHP-List-Original-Sender: sv_forums@fmethod.com X-Host-Fingerprint: 69.16.228.148 unknown Linux 2.4/2.6 Received: from [69.16.228.148] ([69.16.228.148:47957] helo=host.fmethod.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/F9-16552-7152C8B4 for ; Mon, 01 Mar 2010 15:35:35 -0500 Received: from [83.228.56.37] (port=2526 helo=pc) by host.fmethod.com with esmtpa (Exim 4.69) (envelope-from ) id 1NmCKy-0001BX-5d for internals@lists.php.net; Mon, 01 Mar 2010 14:35:32 -0600 Message-ID: <3B776C158D8E4D8D8DEB11A9860B6734@pc> To: Date: Mon, 1 Mar 2010 22:35:24 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0012_01CAB98F.7C095A10" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5843 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.fmethod.com X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - fmethod.com Subject: Scary note for gettype() in docs From: sv_forums@fmethod.com ("Stan Vassilev") ------=_NextPart_000_0012_01CAB98F.7C095A10 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable 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? And just to clarify: I agree is_*() is better if we test for a certain = type (as the note says). However, the use scenario for gettype() is when = we do not test for a certain type (as in, we test for any type), which = is less optimal when executed as 5-6 is_*() calls. Regards,=20 Stan Vassilev ------=_NextPart_000_0012_01CAB98F.7C095A10--