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');
}
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to