Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50477 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46333 invoked from network); 24 Nov 2010 18:03:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Nov 2010 18:03:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=quickshiftin@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=quickshiftin@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: quickshiftin@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:45904] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/91-36251-C835DEC4 for ; Wed, 24 Nov 2010 13:03:57 -0500 Received: by bwz13 with SMTP id 13so83221bwz.29 for ; Wed, 24 Nov 2010 10:03:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=djJLaZzQ9hH2IQVx8et6mcMlpWchQsCo3v50y4xAklM=; b=qVJDlEkHNo8qJbXv3DTWosraq7Pn7FfT9FJ447SabRf/vDGb8u0503H/Cv4fA/psAs anCpvT3E1Et6iO2R8xph5mhm8+DcnF+Xt7X9ly6aF9nDG2Y0FGxx+6ci5cqZAtgNmBJJ 08MuHRkEsY2Rpnsd/GZ9fvj8T1kfWiRtbbd5Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=cp7Z3EXCLnA4DCsbpClNYpH8Mexx2zi2Ml6ZK1kbjso9m6w0EkgzbfvS5c7eqYEJQ4 DKo4XPvumoVg0bkYwnqybt/YQjl2LuRG4N2hISY3WrBObpeEGEZ5dwJwKPaUtroeHF/1 HXA4uLFLYM1BZPBDKf8HQEqrS/53l4gBOU2bg= MIME-Version: 1.0 Received: by 10.204.72.80 with SMTP id l16mr8920418bkj.133.1290621826578; Wed, 24 Nov 2010 10:03:46 -0800 (PST) Received: by 10.204.150.66 with HTTP; Wed, 24 Nov 2010 10:03:45 -0800 (PST) In-Reply-To: References: Date: Wed, 24 Nov 2010 11:03:45 -0700 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=0016e6de044b84ab4f0495d04f99 Subject: Re: Revise callback Psuedo-type to support new Closure class ? From: quickshiftin@gmail.com (Nathan Nobbe) --0016e6de044b84ab4f0495d04f99 Content-Type: text/plain; charset=UTF-8 Ummm... never mind! Sorry for the noise! -nathan On Wed, Nov 24, 2010 at 11:00 AM, Nathan Nobbe wrote: > Hi all, > > I had a thought this morning and would like some feedback. Don't you think > it would make sense to allow the callback psuedo-type to also allow the new > Closure class to be an acceptable data type? A simple example that would be > nice to have working would be > > $fClosure = function($val, $key) { > echo "$key => $val" . PHP_EOL; > } > > $aNumbers = array(5, 4, 3, 2, 1); > > array_walk($aNumbers, $fClosure); > ?> > > Thoughts ? > > -nathan > --0016e6de044b84ab4f0495d04f99--