Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11039 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46435 invoked by uid 1010); 9 Jul 2004 19:18:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 46401 invoked from network); 9 Jul 2004 19:18:35 -0000 Received: from unknown (HELO iconoclast.caedmon.net) (66.45.230.242) by pb1.pair.com with SMTP; 9 Jul 2004 19:18:35 -0000 Received: from sarcasm ([10.20.31.100] helo=caedmon.net) by iconoclast.caedmon.net with esmtp (Exim 3.35 #1 (Debian)) id 1Bj0tB-00014U-00; Fri, 09 Jul 2004 15:18:29 -0400 Message-ID: <40EEEF89.8000605@caedmon.net> Date: Fri, 09 Jul 2004 15:18:33 -0400 User-Agent: Mozilla Thunderbird 0.5 (X11/20040306) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Cris H CC: internals@lists.php.net References: <20040709190753.87430.qmail@web25102.mail.ukl.yahoo.com> In-Reply-To: <20040709190753.87430.qmail@web25102.mail.ukl.yahoo.com> X-Enigmail-Version: 0.83.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] what happened to that new isset() like language From: sean@caedmon.net (Sean Coates) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Cris H wrote: | Isn't this problem solvable with just a "User Space" function? [snip] | Because, as Derick Rethans mentioned, arguments passed by | reference will not trigger the Undefined (variable | index) | Notice at the point of the function call, and also PHP's C++ | style default arguments providing the alternate value, surely | the above code would suffice? | | Apologies if I've completely misunderstood (with certainty a | non-zero probability)... | I understand that this is not sufficient because of the following circumstance: $var = ifsetor($_GET['test'], foo()); foo() is ALWAYS evaluated with the user-space function you wrote. I understand that we don't want foo() to be called unless it needs to be returned (ie, we want to be able to short circuit the parameters)? Now, maybe _I'M_ misunderstanding? (-: I don't have much knowledge of internals, but is this even POSSIBLE as a function call, and not as an operator? S -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA7u+JWppknrQMxQIRAg1KAJ4tApnlVxsD/2Sc/3HubJtzFsp9tQCglqXZ 93qdums+B43W1Rpgjp1hLMg= =91eL -----END PGP SIGNATURE-----