Am 28.01.2009 um 18:41 schrieb Scott MacVicar:

Nathanael D. Noblet wrote:
Peter Walther wrote:
it's only a bug if you always expect optional NULL parameters to be
ignored.

Well that's the question I'm asking. I assumed optional parameters
passed null should be ignored. If this isn't the behaviour php uses,
then I'm good, but I've used passing null to optional params all over
the place, and just recently had this one not work. If my logic /
assumptions are flawed, that's fine otherwise I can file a bug.


You're assumption is wrong then, NULL isn't treated as not passing a
value. The reason it worked with substr was by pure chance.

Out of curiosity - how hard would it be to implement a "default" keyword that can be passed in function/method calls with the new parameter parsing API?

- David

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to