Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72418 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25685 invoked from network); 9 Feb 2014 02:02:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Feb 2014 02:02:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.173 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.173 mail-wi0-f173.google.com Received: from [209.85.212.173] ([209.85.212.173:53217] helo=mail-wi0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A5/20-22225-3B1E6F25 for ; Sat, 08 Feb 2014 21:02:28 -0500 Received: by mail-wi0-f173.google.com with SMTP id hn9so1876650wib.0 for ; Sat, 08 Feb 2014 18:02:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=jz17bbAqgqwmhxkeH4OKypiiGxbe+il01nTAvkLQITM=; b=HjEt/vjTUp1TNWo6/bqSiWB/6EPmT2sOcvy3mtMaFzmqsZhDQsB+raokDqukjf3Rm4 yVfMPUmKW1cmnxNDn1I+A6hhSlX2y69e+/YYHFkJUfua6tUEVRFnLNweRpC2SsCj3L60 gZ+UvVCA8nz1M9HDKrxRtqQEt7PnD4txvUevZvburlH79Vc1GdNvwiKZw3QvWuvlUPCG 0ZbVG/6v6lfX4UuxIY/ox2KZlwdT6kElBGdjcZhmMzJQ9pu+tOk2F8vVnrQGGehEBeRB voVKVkBv+zmh0WhscvBw6zlON/Wmzye9SWGihdzz9BalYcsTQ2a93WEY0Y0cS/PrSt59 3AQw== X-Received: by 10.180.75.202 with SMTP id e10mr5281045wiw.50.1391911343741; Sat, 08 Feb 2014 18:02:23 -0800 (PST) Received: from [192.168.0.2] (cpc19-brig17-2-0-cust25.3-3.cable.virginm.net. [81.101.201.26]) by mx.google.com with ESMTPSA id f1sm24634443wik.1.2014.02.08.18.02.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 08 Feb 2014 18:02:22 -0800 (PST) Message-ID: <52F6E1A3.7060707@gmail.com> Date: Sun, 09 Feb 2014 02:02:11 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Tjerk Meesters CC: PHP Internals References: <52F675F6.6060800@gmail.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------050308010905040404010008" Subject: Re: [PHP-DEV] [discussion] add array_usearch() From: rowan.collins@gmail.com (Rowan Collins) --------------050308010905040404010008 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 09/02/2014 00:04, Tjerk Meesters wrote: > > Is there a particular reason *not* to pass an extra parameter to > callbacks, even if it's unused? > > > Yeah, internal functions don't like extra parameters, e.g.: > > is_numeric('123', 4); > > > Warning: is_numeric() expects exactly 1 parameter, 2 given in php > shell code on line 1 Ah, yes, I always forget that internal functions behave rather differently from user-defined ones when it comes to parameter passing. :) -- Rowan Collins [IMSoP] --------------050308010905040404010008--