Menu

#3 deprecated function: ereg

Unstable_(example)
open
None
5
2013-05-12
2013-05-12
No

This project can also be used in PHP 5.
(I suggest that its name should be changed.)
I found that it includes some deprecated function: ereg.
They introduced to replace with preg_match.

To fix, change line #177 of htmlparser.inc from
return ereg ("^[A-Za-z0-9_\-]+$", $name);
into
return preg_match ("/^[A-Za-z0-9_\-]+$/", $name);
the warning messages will be gone.

Discussion


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.