Re: substr passing null...
| From: | Scott MacVicar | Date: | Wed, 28 Jan 2009 17:41:43 +0000 |
| Subject: | Re: substr passing null... | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42869@lists.php.net to get a copy of this message | ||
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