Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33912 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79326 invoked by uid 1010); 10 Dec 2007 20:12:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 79310 invoked from network); 10 Dec 2007 20:12:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Dec 2007 20:12:26 -0000 Authentication-Results: pb1.pair.com header.from=steph@zend.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=steph@zend.com; spf=permerror; sender-id=softfail Received-SPF: error (pb1.pair.com: domain zend.com from 64.97.136.180 cause and error) X-PHP-List-Original-Sender: steph@zend.com X-Host-Fingerprint: 64.97.136.180 smtpout0180.sc1.he.tucows.com Solaris 8 (1) Received: from [64.97.136.180] ([64.97.136.180:49349] helo=n068.sc1.he.tucows.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 39/D6-39150-7AD9D574 for ; Mon, 10 Dec 2007 15:12:24 -0500 Received: from sc1-out05.emaildefenseservice.com (64.97.139.2) by n068.sc1.he.tucows.com (7.2.069.1) id 47586AEC000C2FE6; Mon, 10 Dec 2007 20:12:17 +0000 X-SpamScore: 50 X-Spamcatcher-Summary: 50,0,0,b0770977672ff2e7,86f1fe7bf2bcddd7,steph@zend.com,-,RULES_HIT:355:379:539:540:541:542:543:567:599:601:967:973:980:988:989:1042:1155:1156:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1539:1587:1593:1594:1711:1730:1747:1766:1792:2073:2075:2078:2198:2199:2380:2393:2525:2560:2564:2682:2685:2693:2828:2857:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3027:3352:3865:3866:3867:3868:3869:3871:3872:3873:3934:3936:3938:3941:3944:4321:4886:5007: 6119:6120:6261:7679,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:none,DNSBL:none X-Spamcatcher-Explanation: Received: from foxbox (unknown [64.97.206.40]) (Authenticated sender: steph.fox) by sc1-out05.emaildefenseservice.com (Postfix) with ESMTP; Mon, 10 Dec 2007 20:12:16 +0000 (UTC) Message-ID: <026901c83b69$083e13b0$e6dfc350@foxbox> Reply-To: "Steph Fox" To: "Stanislav Malyshev" Cc: References: <46.93.08781.F374D474@pb1.pair.com> <474d5320.0d135e0a.43d0.ffffd2b3@mx.google.com> <474D6813.9090606@eenterphace.org> <474DB7F8.5010907@zend.com> <016b01c83ae3$c3acfb60$e6dfc350@foxbox> <475CCA82.2010204@zend.com> <018b01c83aec$7413b2c0$e6dfc350@foxbox> <475CD134.9020005@zend.com> <00c001c83b4c$12cb0f30$e6dfc350@foxbox> <475D7F3B.30504@zend.com> <020c01c83b5d$93c04db0$e6dfc350@foxbox> <475D8D76.3070909@zend.com> <023301c83b62$36614fc0$e6dfc350@foxbox> <475D92BC.7050003@zend.com> <024301c83b63$d6383cb0$e6dfc350@foxbox> <475D97B8.8010409@zend.com> Date: Mon, 10 Dec 2007 20:12:44 -0000 Organization: Zend Technologies MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Re: [PHP-DEV] question regarding type hinting parameters of php functions (array_slice) From: steph@zend.com ("Steph Fox") >> So it's better to check for == 0? What's the difference? Is an IS_NULL >> check slower? > > No, it's not slower, but it makes no sense to compare variable value to a > type constant. Even if coincidentally constant value is the same one you > need to compare to. OK, so if I clean up those patches and re-send, will one of them be applied? (It'd be nice to have some idea which one...) - Steph > -- > Stanislav Malyshev, Zend Software Architect > stas@zend.com http://www.zend.com/ > (408)253-8829 MSN: stas@zend.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >