Deprecated: Function ereg() is deprecated in

Sorry , any idea with this error ? Its at the top of the main gallery page.
No galleries have been added .

Deprecated: Function ereg() is deprecated in C:\wamp\www\pics\zp-core\functions-i18n.php on line 305

Comments

  • acrylian Administrator, Developer
    No, that is not an error and not really an issue yet. Your server must be running already PHP 5.3 that labels the ereg function (and all others of the regex extension) as deprecated as these functions will be not in PHP 6 anymore.
  • I just installed latest zenphoto and i got same error in my local system, using Windows XP and PHP 5.3.

    Deprecated: Function ereg() is deprecated in C:\wamp\www\zenphoto\zp-core\functions-i18n.php on line 305.

    but my live server is running 5.2.6, so there is no problem with this.
  • acrylian Administrator, Developer
    Not to use depecated functions is basically a recommendation. It will not be a real problem until PHP 6 where these will be thrown out.
  • We will eventually change all these. Personally, I think the PHP people have made a mistake here. There is not a simple replacement for these functions, so much work and testing will be required to stop using them. Work that would be better spend on "real" problems.
  • shub Member
    any way to remove those stupid messages? kinda ugly!

    -Shub
  • It would seem you are in luck http://us3.php.net/manual/en/function.error-reporting.php.

    With the introduction of this error message the powers that be have seen fit to allow supressing the messages. Set the error reporting to include E_ALL ^E_DEPRECATED in functions-basic.php where it is currently being set to E_ALL
Sign In or Register to comment.