Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68846 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53552 invoked from network); 2 Sep 2013 11:29:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2013 11:29:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=ekneuss@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ekneuss@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.51 as permitted sender) X-PHP-List-Original-Sender: ekneuss@gmail.com X-Host-Fingerprint: 209.85.128.51 mail-qe0-f51.google.com Received: from [209.85.128.51] ([209.85.128.51:35376] helo=mail-qe0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/F4-29856-09674225 for ; Mon, 02 Sep 2013 07:29:20 -0400 Received: by mail-qe0-f51.google.com with SMTP id 1so962785qec.10 for ; Mon, 02 Sep 2013 04:29:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=gmuLm1VZuUaO+1s0N3oQiZDZ0Hl6RQrKozp+K4gxqgg=; b=wtA3G4FvtKapKCAYYqtXRcUXFVgIeLqOdy20tycqAvM6Ww6fhx5+T+Yfewk6rGTJql cyMslxE98zc7oXbVDxlTFy4wK1HvyO2kxNL04smVH+nTC8w1mG1ESMsKyeVNy0Z7rCz2 iHIZoaWMR7A95vXqSPb7MRQcNuen0xIWlOrihfBj0/8fCT4XysuUSW1Pm/Vr3X5iFkaT jHxM31qZnY7nusM4zIlGJWiRSKf6/95Tv5dZ3mCyDObRd6QpkIeOw65YAykbsMdwfZP2 WGiLdd2w9HgePtdpYKJv1jJfbKnqRqPpUZW3mbPK29pcYLqz6VHCRhRBxDrRs2DkYd/q Lfrw== X-Received: by 10.224.127.196 with SMTP id h4mr28206226qas.59.1378121357568; Mon, 02 Sep 2013 04:29:17 -0700 (PDT) MIME-Version: 1.0 Sender: ekneuss@gmail.com Received: by 10.49.47.72 with HTTP; Mon, 2 Sep 2013 04:28:57 -0700 (PDT) In-Reply-To: References: <52243BA6.5040905@sugarcrm.com> Date: Mon, 2 Sep 2013 13:28:57 +0200 X-Google-Sender-Auth: iTc2xitLtvre2cWl52DXGxdf-_M Message-ID: To: Derick Rethans Cc: Stas Malyshev , PHP Internals Content-Type: multipart/alternative; boundary=001a11c2bc52f9b0e004e564e142 Subject: Re: [PHP-DEV] [RFC] Skipping parameters take 2 From: colder@php.net (Etienne Kneuss) --001a11c2bc52f9b0e004e564e142 Content-Type: text/plain; charset=UTF-8 On Mon, Sep 2, 2013 at 12:48 PM, Derick Rethans 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 --001a11c2bc52f9b0e004e564e142--