Re: Invalid class constructors
| From: | Stefan Neufeind | Date: | Mon, 16 Feb 2004 14:04:36 +0000 |
| Subject: | Re: Invalid class constructors | ||
| References: | 1 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-549@lists.php.net to get a copy of this message | ||
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.
Regards,
Stefan