On Mon, Sep 2, 2013 at 12:48 PM, Derick Rethans <der...@php.net> wrote:
> 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? > well, default is a keyword so you wouldn't be able to use it as a constant like that. You would be able to define it via its string name, sure, but not access it directly. > > 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Etienne Kneuss