Deprecated functions php 5.3 (eregi, ereg, spliti, split . ..). How to make your code work again.

You had a website and all of the sudden it stopped working? Got the error Deprecated: Function eregi() is deprecated in... (or others similar like 'Deprecated: Function ereg_replace() is deprecated' , 'Deprecated: Function split() is deprecated' or 'Deprecated: Function spliti() is deprecated')

Well, look no further. Your host has upgraded to the latest version of php, php version 5.3 and some of the most common functions have stopped working (wordpress, oscommerce, zencart... most common packages are affected). Why? Because they have been 'DEPRECATED' (which it does mean that they do not exist anymore in the latest version of php).

As a first workaround, you can upgrade your package. But what if your website was heavily customized and upgrading to the latest version is really work-consuming?

Well, you are lucky to be a ComfortHost customer. As always you are ahead on time making your online life more comfortable! We have, of course, upgraded to the latest php. But we have preserved Neptune with an special configuration. In that server, we have coded an special php tweak that makes the most important functions (ereg, ereg_replace, eregi, split, spliti) to work at a lower level than your application. Server wide. This does mean that you do not need to touch anything, if you are in Neptune, your code will work right away with php 5.3.


Shortlist FAQ

What if my site is not in Neptune?

Easy: drop us a note in helpdesk and we will move the site to that server for you.

What if I'm not a comforthost customer, can I have this patch?

No. Unfortunately, it is reserved for existing customers. You can, however, signup for a package and try it out under our 30 days money back guarantee at no risk

But why did you take so much trouble, couldn't you leave the server with php 5.2?

It is not wise to keep outdated php versions. They have security flaws that once corrected in the new version, are publicy known because the correction is mentioned on the php 5.3 release. One of the most important security good-practice rule is to always keep server kernel, scripts and languages up-to-date. The hosts that are not updating to avoid trouble to their customers are just delaying the unavoidable by putting the whole server in serious risk of being hacked


Here is the list of deprecated functions in php 5.3:

We only coded the solutions for the most common, however if any of those is affecting you and is not covered already, just let us know and we will be happy to sort you out in no time.



  • 0 أعضاء وجدوا هذه المقالة مفيدة
هل كانت المقالة مفيدة ؟

مقالات مشابهة

Install NAT and openvpn in a openvz node, with NAT enabled.

#This instructions are ready for you to copy and paste in putty bash command line. The commands...

optimize your site for speed. mod_deflate

Enable GZIP Compression on Per Account Basis Login to cPanel account for the user account which...

How to add IPs to your VPS server

On bash, go to /etc/sysconfig/network-scripts and you will see a list of interfaces [root@server...