Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42130 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83528 invoked from network); 7 Dec 2008 00:38:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Dec 2008 00:38:30 -0000 Authentication-Results: pb1.pair.com header.from=igor.feghali@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=igor.feghali@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.221.20 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: igor.feghali@gmail.com X-Host-Fingerprint: 209.85.221.20 mail-qy0-f20.google.com Received: from [209.85.221.20] ([209.85.221.20:47480] helo=mail-qy0-f20.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/0A-27690-40B1B394 for ; Sat, 06 Dec 2008 19:38:29 -0500 Received: by qyk13 with SMTP id 13so701710qyk.23 for ; Sat, 06 Dec 2008 16:38:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Qq+saFJMqD4lg9CYDTiVjqXeAr45s0ZWPDEZISGwjwg=; b=ohNeH5uHTa1fqnYW7gtv1LCPI962xLZ9KAl1ed3N6jn1hmJftcOLIsAd0QgXZZ9ckA hn3SafKyF7XLZLsSRNMMo/xT1Xtt4u3RT5ZBrnw+ajWHV6ovaFNa2IQUxBmhHT9fRWqV OEC0daDTDVZqXrQKYqW5+vl8htDbEwa+neJ4I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=V+Ebegfl+RIYDZK6Fd01ErC9js93Sx9+IPziyBkbb//VGK+UjUts++y+X5Z/U3+Rmd C5Mj8fFed36SxDKIJBoC0MZFBdEuFfdCZrWCtzXXJxqIJvOubPglJRg3dV41PuT/lH65 EDJNmLpKl5ACmEpu5XrnBIVkPbfW4Lg8NFIII= Received: by 10.214.184.11 with SMTP id h11mr1339220qaf.240.1228610305475; Sat, 06 Dec 2008 16:38:25 -0800 (PST) Received: by 10.214.43.6 with HTTP; Sat, 6 Dec 2008 16:38:25 -0800 (PST) Message-ID: Date: Sat, 6 Dec 2008 22:38:25 -0200 To: "Lars Strojny" Cc: "PHP Internals List" In-Reply-To: <1228604866.18444.3.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1228604866.18444.3.camel@localhost> Subject: Re: [PHP-DEV] Implode() FR and Patch From: igor.feghali@gmail.com ("Igor Feghali") On Sat, Dec 6, 2008 at 21:07, Lars Strojny wrote: > enough. You ran into a situation where this became a bottleneck in your > code? nope. I just think its something too "simple", too "obvious" and too "frequent" so it deserves the love of php internals. Having to call array_filter() and yet a callback function just to check the emptiness of an element is too much of a hassle and a waste of both - running and development time. > For consistency, if we decide to introduce that for implode(), we should > do it for explode() too. Actually that's already on my plans but I was waiting some feedback on implode() first. > Anyway, would you mind writing a proper RFC for the addition? Absolutely. I would appreciate some directions on that though. Can I just follow the template of, say http://wiki.php.net/rfc/traits ? Regards, Igor Feghali.