Menu

#134 Replace ereg_* functions (because they are deprecated)

open
None
5
2014-08-24
2010-07-12
Katalonian
No

I get an error in test.php :

phpESP Settings

* Loading phpESP.ini.php ...

Deprecated: Function ereg() is deprecated in D:\xampp\htdocs\adiu\phpESP\admin\include\lib\espauth.inc on line 13

Deprecated: Function ereg() is deprecated in D:\xampp\htdocs\adiu\phpESP\admin\include\lib\espauth.inc on line 16

Deprecated: Assigning the return value of new by reference is deprecated in D:\xampp\htdocs\adiu\phpESP\admin\include\lib\adodb\adodb-xmlschema03.inc.php on line 404

Deprecated: Assigning the return value of new by reference is deprecated in D:\xampp\htdocs\adiu\phpESP\admin\include\lib\adodb\adodb-xmlschema03.inc.php on line 416

And get error lines in header of manage.php (but all working)

Deprecated: Function ereg() is deprecated in D:\xampp\htdocs\adiu\phpESP\admin\include\lib\espauth.inc on line 13

Deprecated: Function ereg() is deprecated in D:\xampp\htdocs\adiu\phpESP\admin\include\lib\espauth.inc on line 16

Deprecated: Assigning the return value of new by reference is deprecated in D:\xampp\htdocs\adiu\phpESP\admin\include\lib\adodb\adodb-xmlschema03.inc.php on line 404

Deprecated: Assigning the return value of new by reference is deprecated in D:\xampp\htdocs\adiu\phpESP\admin\include\lib\adodb\adodb-xmlschema03.inc.php on line 416

Deprecated: Function ereg_replace() is deprecated in D:\xampp\htdocs\adiu\phpESP\admin\include\funcs.inc on line 35

Deprecated: Function ereg() is deprecated in D:\xampp\htdocs\adiu\phpESP\admin\include\funcs.inc on line 36

Deprecated: Function ereg_replace() is deprecated in D:\xampp\htdocs\adiu\phpESP\admin\include\funcs.inc on line 35

Deprecated: Function ereg() is deprecated in D:\xampp\htdocs\adiu\phpESP\admin\include\funcs.inc on line 36

Discussion

  • Franky Van Liedekerke

    • assigned_to: nobody --> liedekef
     
  • Franky Van Liedekerke

    Correct, it seems ereg() functions are deprecated as from php 5.3. Although for now they still work, so it is not a real issue. But I will replace all ereg calls by preg calls asap.

     
  • Anonymous

    Anonymous - 2011-02-09

    It is a real issue, as there are lines of what users see as error codes above the form they fill out, so they don't fill out the form.

     

    Last edit: Anonymous 2014-04-08
  • bishop

    bishop - 2011-02-09

    E_DEPRECATED is a distinct notice class about a potential /future/ problems. There are no problems with ereg in versions up through PHP 6 (where ereg_* is totally gone).

    Users of PHP 5.3 should set the error_reporting level correctly on production servers (set ~E_DEPRECATED), or if that is not possible, manually prepend an @ in front of all ereg_ calls where they exist.

    Since this is a notice about potential /future/ problems, it will be fixed in a /future/ version of phpESP.

     
  • bishop

    bishop - 2011-02-09
    • labels: 103221 -->
    • milestone: 1088358 -->
    • summary: Deprecated Error --> Replace ereg_* functions (because they are deprecated)
     
  • cfxa

    cfxa - 2011-09-27

    Any news on when an update will be coming out for the deprecate and ensuing issues that have cropped up as a result of php upgrading?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.