Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61276 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44711 invoked from network); 16 Jul 2012 08:08:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2012 08:08:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=robin@kingsquare.nl; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=robin@kingsquare.nl; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kingsquare.nl from 212.54.42.166 cause and error) X-PHP-List-Original-Sender: robin@kingsquare.nl X-Host-Fingerprint: 212.54.42.166 smtpq3.tb.mail.iss.as9143.net Linux 2.6 Received: from [212.54.42.166] ([212.54.42.166:49041] helo=smtpq3.tb.mail.iss.as9143.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/87-20866-41CC3005 for ; Mon, 16 Jul 2012 04:08:53 -0400 Received: from [212.54.42.137] (helo=smtp6.tb.mail.iss.as9143.net) by smtpq3.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1SqgML-00049t-56; Mon, 16 Jul 2012 10:08:49 +0200 Received: from 5351426c.cm-6-2b.dynamic.ziggo.nl ([83.81.66.108] helo=[10.0.0.110]) by smtp6.tb.mail.iss.as9143.net with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1SqgMK-0001vy-Uk; Mon, 16 Jul 2012 10:08:49 +0200 Message-ID: <5003CC02.6070709@kingsquare.nl> Date: Mon, 16 Jul 2012 10:08:34 +0200 Organization: Kingsquare Information Services User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: Gustavo Lopes CC: internals@lists.php.net References: <4672bc1ca5a1ad95956b60ea654f7b24@nebm.ist.utl.pt> In-Reply-To: <4672bc1ca5a1ad95956b60ea654f7b24@nebm.ist.utl.pt> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: kingsquare@ziggo.nl (via SMTP) X-Ziggo-spambar: - X-Ziggo-spamscore: -1.0 X-Ziggo-spamreport: ALL_TRUSTED=-1 X-Ziggo-Spam-Status: No X-Spam-Status: No X-Spam-Flag: No Subject: Re: [PHP-DEV] New String Function: str_replace_limit From: robin@kingsquare.nl ("Kingsquare.nl - Robin Speekenbrink") Hi all, I'm a strict follower of this list and havent posted (as of yet) due to the fact that i'd like to be in the loop, but am not a C developer... :) But on this discussion i'd like to give my 2c: As a PHP developer i'd regret to see yet another function added to the language instead of adding a new parameter. (this it does the same thing just limited) Also with the other discussion on being able to skip default parameters (using the keyword 'default') this shouldnt be a problem should it? Thanks, i'll butt out now :D Op maandag 16 juli 2012 10:05:02, Gustavo Lopes schreef: > On Sun, 15 Jul 2012 20:59:10 +0100, Paul Dragoonis wrote: >> The 4th param to str_replace is a by-ref param, so you can't just skip >> over it, can you ? >> > > I don't think so, but we could make it so that you could by using > optional passing by reference. >