Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68844 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50014 invoked from network); 2 Sep 2013 11:03:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2013 11:03:52 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.215.10 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.215.10 mail.experimentalworks.net Received: from [217.114.215.10] ([217.114.215.10:43459] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0A/24-29856-69074225 for ; Mon, 02 Sep 2013 07:03:51 -0400 Received: from [192.168.2.20] (ppp-93-104-25-188.dynamic.mnet-online.de [93.104.25.188]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: johannes@schlueters.de) by mail.experimentalworks.net (Postfix) with ESMTPSA id 1703743051; Mon, 2 Sep 2013 13:03:45 +0200 (CEST) To: Derick Rethans Cc: Stas Malyshev , PHP Internals In-Reply-To: References: <52243BA6.5040905@sugarcrm.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 02 Sep 2013 13:03:37 +0200 Message-ID: <1378119817.3656.137.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Skipping parameters take 2 From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Mon, 2013-09-02 at 11:48 +0100, Derick Rethans wrote: > > 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? Nothing special as default is a keyword already (-> switch). Your only way to access that constant is already by using the constant() function. johannes