Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33915 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96128 invoked by uid 1010); 10 Dec 2007 21:11:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 96099 invoked from network); 10 Dec 2007 21:11:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Dec 2007 21:11:10 -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.139 cause and error) X-PHP-List-Original-Sender: steph@zend.com X-Host-Fingerprint: 64.97.136.139 smtpout0139.sc1.he.tucows.com Solaris 8 (1) Received: from [64.97.136.139] ([64.97.136.139:32551] helo=n066.sc1.he.tucows.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 76/68-39150-1C5AD574 for ; Mon, 10 Dec 2007 15:46:58 -0500 Received: from sc1-out04.emaildefenseservice.com (64.97.139.2) by n066.sc1.he.tucows.com (7.2.069.1) id 47586DDB0008864F for internals@lists.php.net; Mon, 10 Dec 2007 20:46:55 +0000 X-SpamScore: 50 X-Spamcatcher-Summary: 50,0,0,2f3ca8f853be3770,86f1fe7bf2bcddd7,steph@zend.com,-,RULES_HIT:355:379:539:540:541:542:543:567:599:600:601:901:960:967:973:980:988:989:1042:1155:1156:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1587:1593:1594:1711:1730:1747:1766:1792:2073:2075:2078:2198:2199:2380:2393:2525:2551:2553:2560:2566:2682:2685:2693:2828:2857:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3027:3352:3657:3865:3866:3867:3868:3869:3871:3872:3873:3934:3936:3938: 3941:3944:4321:4886:5007:6119:6120:6261:7576: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-out04.emaildefenseservice.com (Postfix) with ESMTP for ; Mon, 10 Dec 2007 20:46:54 +0000 (UTC) Message-ID: <029f01c83b6d$dedfc4a0$e6dfc350@foxbox> Reply-To: "Steph Fox" To: 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> <026901c83b69$083e13b0$e6dfc350@foxbox> Date: Mon, 10 Dec 2007 20:47:23 -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") Both are now on http://bugs.php.net/bug.php?id=43541. Ignore the first of the three, it breaks when the length param isn't passed. I'm going offline before I say anything else stupid :) - Steph ----- Original Message ----- From: "Steph Fox" To: "Stanislav Malyshev" Cc: Sent: Monday, December 10, 2007 8:12 PM Subject: Re: [PHP-DEV] question regarding type hinting parameters of php functions (array_slice) >>> 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 >> > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >