-----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-----

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to