Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84427 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80522 invoked from network); 8 Mar 2015 09:27:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Mar 2015 09:27:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 217.147.176.214 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.214 mail4-2.serversure.net Linux 2.6 Received: from [217.147.176.214] ([217.147.176.214:59571] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/90-08044-D061CF45 for ; Sun, 08 Mar 2015 04:27:42 -0500 Received: (qmail 15081 invoked by uid 89); 8 Mar 2015 09:27:38 -0000 Received: by simscan 1.3.1 ppid: 15075, pid: 15078, t: 0.0707s scanners: attach: 1.3.1 clamav: 0.96/m:52/d:10677 Received: from unknown (HELO ?10.0.0.8?) (lester@rainbowdigitalmedia.org.uk@86.189.147.37) by mail4.serversure.net with ESMTPA; 8 Mar 2015 09:27:38 -0000 Message-ID: <54FC160A.3060107@lsces.co.uk> Date: Sun, 08 Mar 2015 09:27:38 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: internals@lists.php.net References: <54F440E6.4050908@gmail.com> <54F48108.6010000@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Feature request and RFC From: lester@lsces.co.uk (Lester Caine) On 08/03/15 08:57, Thomas Gielfeldt wrote: >> > > What about a "hybrid" solution? Pass the flags as well as a callback. Then > the implementor can react on the flags if necessary. > > https://gist.github.com/gielfeldt/c0ca611f525878c36a65 Off topic I know - but how the **** do I make the github text readable? Light grey on white may work for some, but even changing contrast on the monitor I can't actually read that :( > In this case, I've introduced a new constant for user defined sort. > However, I see a couple of variations on this. > > 1.) Constant for determining user defined sort (as per the example). > 2.) 2 methods, one for usorts, and one for the others (still with both > flags and callbacks). This will result in 6 methods, if we keep it to just > one interface. > 3.) 3 interfaces with either one or two methods (option 1 & 2 above). -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk