Ho to use global alias function?

I have apache server with PHP 5.2 with many obsolete applications on it.
We must upgrade to PHP 5.3

I know there is no more ereg() function with bunch of other functions.

I need to create global alias for my function witch will simulate ereg() function
Something like  "Facade pattern" but global for all application.

Is there some way to do it?
Best Regards

LVL 11
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
Why do you have to upgrade to 5.3?  Most hosting companies never upgrade a server with user accounts on it so they Don't break their users code.  With hosting companies, you have to change servers to get a newer version of PHP and most other things.

Even if it were possible to 'alias' the ereg() function, a typical problem is that PHP 5.3 is simply pickier about many errors and users find that things that were ignored as warnings before now show up on the screen as errors.  Is this a Linux or Windows server?
I don't understand the question - replace ereg functions with preg functions
Also its not that ereg is no more, rather thats its deprecated - meaning the module is no longer being worked on, this doesn't mean that it doesn't exist rather that its use is discouraged.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
f_o_o_k_yAuthor Commented:
my bad. I misunderstood the notice from php.net
Derokorian you are right.

Best Regards
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.