Re: Invalid class constructors

From: Date: Mon, 16 Feb 2004 14:09:54 +0000
Subject: Re: Invalid class constructors
References: 1 2  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-550@lists.php.net to get a copy of this message
Stefan Neufeind wrote:
On 16 Feb 2004 at 14:48, Lukas Smith wrote:
Lukas Smith wrote:
Stefan Neufeind wrote:
On 16 Feb 2004 at 13:49, Stefan Walk wrote:
On Mon, Feb 16, 2004 at 10:23:48AM +0100, Lukas Smith wrote:
could you do similar magic in regards to get_class without strtolower calls?
$ grep -nri get_class * | grep -vi strtolower |grep !=\\\|== |wc -l 114
If you all agree, I volunteer to file bugs for every of these affected packages. This should make a direct contact to the author easier and help track necessary changes.
Actually I was pondering running a little regexp across the entire CVS and then doing a little QA commit action ...
dunno if this is elegant but this is what I came up with: replace: get_class\(([^)]+)\)([^)]) with: strtolower(get_class(\1))\2 I would manually ok every replacement and I would not replace those instances where the output is directly used in an user error message.
The changes are not *that* much work. So I'd favor to do it by hand (with the search-results that were sent on this list) and being on the save-side because you really "reviewed" the source. And please note that you don't only need to commit changes to CVS but also track that a new release will be packed soon afterwards. So I suggest leaving this work up to the maintainers for those packages where they can (still) be reached.
yeah ok .. lets file bug reports ... i think moving to is_a() is the best course of action. that however requires php 4.2. alternative stefan walk suggested strcasecmp(). while we are at it I saw that about 30% of the files I was looking at today in pear cvs have tabs in them .. maybe we need to come up with a script that files bug reports. regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07

« previous php.pear.qa (#550) next »