Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37094 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27542 invoked from network); 17 Apr 2008 17:23:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2008 17:23:47 -0000 Authentication-Results: pb1.pair.com header.from=chrisstocktonaz@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=chrisstocktonaz@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.200.175 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: chrisstocktonaz@gmail.com X-Host-Fingerprint: 209.85.200.175 wf-out-1314.google.com Received: from [209.85.200.175] ([209.85.200.175:58371] helo=wf-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/3A-05127-3A787084 for ; Thu, 17 Apr 2008 13:23:47 -0400 Received: by wf-out-1314.google.com with SMTP id 27so109851wfd.26 for ; Thu, 17 Apr 2008 10:23:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=B/8FTUJ9OvmC+H/DGkYf9lKqFFL/cBTJU2hltkVdJio=; b=rZ/qim8KAEmPNHHEMKT7CUVmMmGUpF+CIf/LtoC7pnDCQnlKoZkkVZ26EpqJ3dqnxZp9zoZZhz8lvk2t3UZ3QtOwUufJ61+Zsh3TDQ7tv9oGHO8tubjF4y4RnUcWEznVXzpSysQUdpXTf7ZM2dkLWy9ylpUFc6IxlbvPab5rQIU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=ZkiPk8b1l7L/N3lFlgl8bB6IzcOR3i3XUAfjNtmwPcafqU19aUELvxTnNtxBgtURU8ETiOeSjAEw4lcX4NHF2K8B21VMvJCiuQ1LVJ/gRw0DdnPK5NGUiIeQVuM74FOOj1gpg8LKLmv+sMSk+odfmGLfKyEOG9/iyyZ1clgvx4g= Received: by 10.142.172.12 with SMTP id u12mr513358wfe.15.1208453024806; Thu, 17 Apr 2008 10:23:44 -0700 (PDT) Received: by 10.142.178.15 with HTTP; Thu, 17 Apr 2008 10:23:44 -0700 (PDT) Message-ID: Date: Thu, 17 Apr 2008 10:23:44 -0700 To: "Sam Barrow" Cc: "Stanislav Malyshev" , "Felipe Pena" , internals@lists.php.net In-Reply-To: <1208452308.6148.3.camel@sbarrow-desktop> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1023_31900880.1208453024811" References: <46ccd1ab0804170742g142ed562t4f03339da549a820@mail.gmail.com> <48077BD2.2000107@zend.com> <48078168.1070801@zend.com> <1208452308.6148.3.camel@sbarrow-desktop> Subject: Re: [PHP-DEV] [RFC] Strict type hints (parameter and return value) From: chrisstocktonaz@gmail.com ("Chris Stockton") ------=_Part_1023_31900880.1208453024811 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thu, Apr 17, 2008 at 10:11 AM, Sam Barrow wrote: > Actually, is_numeric checks for strings that contain numeric values, > it's not the same as is_bool, is_int, is_float, etc, which check the > variable's type. Hence my second example = ) > Your point is very valid for is_int and similar functions, just not > is_numeric(). I just did a grep on zend framework for is_int and there > were tons of results. > I think it is valid for anything, numeric type hinting is very appropriate in php. ------=_Part_1023_31900880.1208453024811--