Deprecated:Function ereg() is deprecated for osCommerce

Deprecated: Function ereg() is deprecated in

Try replacing line 16-17 in catalog/includes/application_top.php and admin/includes/application_top.php

// set the level of error reporting
 error_reporting(E_ALL & ~E_NOTICE);

// set the level of error reporting
 error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);

Looking at the long list of deprecated features in PHP 5.3.0. I get the impression that if you want to replace all the code with  deprecated functions we might as well do a total rewrite and use  superglobals everywhere.
But then we might as well better start using osC v3. Pity there doesn't seem to be any progress in that area   So for the time being I believe adding the ~E_DEPRECATED will at least  be needed too. Frankly, I'm amazed that these are the only error  messages since for example all the session_ functions are deprecated  too.

Leave a Reply

Your email address will not be published. Required fields are marked *