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. Scott -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php