Re: [PHP-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-02-20 Thread Jason Greene
Andrei Zmievski wrote: > > On Tue, 20 Feb 2001, Jason Greene wrote: > > Well, > > My thoughts on this one were that if you are actually grabbing a key, > > people are more > > likely to trust that the returned key does in fact reference the value > > that was searched. Perhaps defaulting to stri

Re: [PHP-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-02-20 Thread Andrei Zmievski
On Tue, 20 Feb 2001, Jason Greene wrote: > Well, > My thoughts on this one were that if you are actually grabbing a key, > people are more > likely to trust that the returned key does in fact reference the value > that was searched. Perhaps defaulting to strict is not a good idea, but to > me it

Re: [PHP-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-02-20 Thread Jason Greene
Well, My thoughts on this one were that if you are actually grabbing a key, people are more likely to trust that the returned key does in fact reference the value that was searched. Perhaps defaulting to strict is not a good idea, but to me it seemed logical, and I figured that if anyone else in

Re: [PHP-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-02-20 Thread Andrei Zmievski
On Tue, 20 Feb 2001, Jason Greene wrote: > + if (behavior == 0) { > + compare_func = is_equal_function; > + } else { > + /* Lets not return a key unless the values are exact */ > + compare_func = is_identical_function; > + } Why not? Why should it b