NYCPHP Meetup

NYPHP.org

[nycphp-talk] Class name conflict with Pear Pager

Rolan Yang rolan at omnistep.com
Thu Sep 13 18:40:52 EDT 2007


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



More information about the talk mailing list