Re: $string != $array should throw a warning!
| From: | Adam Trachtenberg | Date: | Tue, 28 Dec 1999 20:44:41 +0000 |
| Subject: | Re: $string != $array should throw a warning! | ||
| References: | 1 | Groups: | php.dev php.version4 |
| Request: | Send a blank email to php-dev+get-14107@lists.php.net to get a copy of this message | ||
On Tue, 28 Dec 1999, Andi Gutmans wrote:
> On Tue, 28 Dec 1999, Thies C. Arntzen wrote:
>
> > andi,
> > the fix is too easy to put it in bugdb, question is how do we want to fix
> > it:
> >
> > a) spit a warning in compare-function & still return var_reset()?
>
> We should be returning false (bool(0)) in these functions. We'll have to
> hold a vote if we should spit out a warning or not. I think we should
> because it's a coding error.
I agree. It should return false and spit out a warning, I want to know if
I've done something wrong. Failing silently doesn't help me debug. :)
-adam
--
/ adam maccabee trachtenberg | visit college life online \
\ adam@student.net | http://www.student.com /