f_o_o_k_y
asked on
Ho to use global alias function?
Hello,
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
FooKy
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
FooKy
I don't understand the question - replace ereg functions with preg functions
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hello,
my bad. I misunderstood the notice from php.net
Derokorian you are right.
Best Regards
FooKy
my bad. I misunderstood the notice from php.net
Derokorian you are right.
Best Regards
FooKy
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?