Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68842 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46615 invoked from network); 2 Sep 2013 10:48:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2013 10:48:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:48990] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EC/63-29856-5EC64225 for ; Mon, 02 Sep 2013 06:48:05 -0400 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id D86B3E202A; Mon, 2 Sep 2013 11:48:01 +0100 (BST) Date: Mon, 2 Sep 2013 11:48:01 +0100 (BST) X-X-Sender: derick@whisky.home.derickrethans.nl To: Stas Malyshev cc: PHP Internals In-Reply-To: <52243BA6.5040905@sugarcrm.com> Message-ID: References: <52243BA6.5040905@sugarcrm.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] [RFC] Skipping parameters take 2 From: derick@php.net (Derick Rethans) On Mon, 2 Sep 2013, Stas Malyshev wrote: > Hi! > > I've finally took some time to revive the skipping parameter RFC and > patch. For those who doesn't remember what it is please see: > https://wiki.php.net/rfc/skipparams > TLDR version: > > The idea is to allow skipping parameters in function with optional > arguments so that this: > function create_query($where, $order_by, $join_type='INNER', $execute > = false, $report_errors = true) > > can be called like this: > create_query("deleted=0", "name", default, default, /*report_errors*/ true); What would happen if I had done: define('default', 42); before that line? cheers, Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug Posted with an email client that doesn't mangle email: alpine