Re: Re: array_change_key_case()? key_exists()?

From: Date: Sun, 11 Nov 2001 22:49:34 +0000
Subject: Re: Re: array_change_key_case()? key_exists()?
References: 1  Groups: php.dev php.doc 
Request: Send a blank email to php-dev+get-70172@lists.php.net to get a copy of this message
Jeroen what you did was completely irresponsible. Without even starting a discussion about whether a function is needed or not you take steps to undocument them?!? I added array_change_key_case to address issues of making PEAR::DB truly portable since different db backends have different conventions on returning the case of column names. How else would you make an application that is supposed to run on both Oracle in Postgres using asoc arrays as return values? Or process the results of getallheaders() function. Edin > > It is complete nonsense. Gabor have discussed it with Andrei. Derick > > have reverted it and you have removed it with comments again. > > > > You can have a full time job if you want all undocumented functions > > documented. It should be easy, but not every developer follows some > > rules. > > Understand me correctly: Goba is doing a great job documenting all those > undocumented functions. It's just that I only noticed because of this > commit that those functions were added, otherwise I'd have tried to > start a discussion earlier. > > PHP currently contains no less than 2329(!) functions. With such a huge > amount of functions, and also without such a huge amount of functions, > you must guard for too specific functions that could be replaced by a > more general one. With array_change_key_case, there is definitely a case > of a too specific function. I didn't yet come up with a syntax for a > more general function, but pending this discussion, it's (IMHO) wise to > suspend documenting this function, until it is agreed to leave the > function as it is, or not. Suspending the documentation of it only > serves to prevent ruling out the second possibility for the sake of BC. > > Goba: sorry if it seemed that I was obstructing your great effords, > that's definitely not the case. > > --Jeroen > > Jeroen van Wolffelaar > Jeroen@A-Eskwadraat.nl > http://jeroen.A-Eskwadraat.nl > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.dev (#70172) next »