Quick fix for the ‘Deprecated: Function eregi() is deprecated ‘ issue / error with phpThumb and PHP 5.3+

I recently upgraded a production server to PHP 5.3.6 from a much earlier 5.2.x build and noticed that the process had killed all instances of phpThumb on the server due to the deprecation of the functions ‘eregi’, ‘ereg’, ‘split’ & ‘eregi_replace’. See:- http://php.net/manual/en/migration53.deprecated.php for a full list of functions deprecated since PHP 5.3.0. The messages […]