[nycphp-talk] Class name conflict with Pear Pager
Rolan Yang
rolan at omnistep.com
Thu Sep 13 18:46:07 EDT 2007
Rolan Yang wrote:
> Cliff Hirsch wrote:
>> Shana Tovah:
>>
>> I have a class called Pager. Bad name. This conflicts with Pear
>> Pager. It is used in a zilion places so changing the name would be a
>> pain. Not a big deal, but a pain. To date, I have just been deleting
>> or renaming the Pear Pager class, but every time I “refresh” PHP, the
>> problem crops up again. Any global suggestions on how to address
>> class name conflicts with Pear?
>>
>> Cliff
>
> If the summation of your "refresh" pains exceed the one-time pain in
> changing the name, try a perl global search and replace.
> See the "perl -pi -e" examples at the bottom of
> http://www.oreilly.com/pub/h/73
>
> ~Rolan
>
That was a bit confusing in english. Perhaps this code snippet will
clarify things a bit:
if (array_sum($refreshPains) > $searchAndReplacePain) {
readfile('http://www.oreilly.com/pub/h/73');
}
More information about the talk
mailing list