Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33893 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86426 invoked by uid 1010); 10 Dec 2007 05:40:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 86411 invoked from network); 10 Dec 2007 05:40:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Dec 2007 05:40:13 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:37592] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3D/30-53444-A31DC574 for ; Mon, 10 Dec 2007 00:40:13 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 10 Dec 2007 07:40:08 +0200 Received: from [192.168.17.28] ([192.168.17.28]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 9 Dec 2007 21:40:05 -0800 Message-ID: <475CD134.9020005@zend.com> Date: Sun, 09 Dec 2007 21:40:04 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Steph Fox CC: internals@lists.php.net 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> In-Reply-To: <018b01c83aec$7413b2c0$e6dfc350@foxbox> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 10 Dec 2007 05:40:05.0095 (UTC) FILETIME=[1DC2A770:01C83AEF] Subject: Re: [PHP-DEV] question regarding type hinting parameters of php functions (array_slice) From: stas@zend.com (Stanislav Malyshev) >> Right, that's what "l" parameter spec is doing, doesn't it? Why >> convert it manually? > > Because it doesn't know the difference between NULL and 0 if it's a long. And why this difference is important in array_slice()? I don't see anything in manual that says anything about NULLs. Could you explain? > One that doesn't break every script that didn't strictly stay with int > over the last 8 years or so. Errm... I still don't understand. Could you give code example? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com