Re: [RFC] Skipping parameters take 2

From: Date: Mon, 02 Sep 2013 10:48:01 +0000
Subject: Re: [RFC] Skipping parameters take 2
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
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


Thread (69 messages)

« previous php.internals (#68842) next »