by mflorell » Sun Feb 24, 2013 7:29 pm
The Vicidial source code started 10 years ago, back when ereg was the ONLY built-in option for regular expressions and preg was an optional add-on that required additional software beyond perl itself to work. The NOTICE for ereg to be depricated was added years ago in PHP5 releases when the roadmap for PHP6 came out, then the PHP6 release schedule was scrapped and revised many times, but the ereg NOTICE was still left in place even though it would be years until the function was actually removed in the latest PHP stable release. ereg still works just fine in PHP5, it just throws a NOTICE, which does not impact the functionality of the script at all. I would suggest just disabling NOTICES unless you need them because you are debugging PHP on your system, they should have no effect on how Vicidial functions.
Changing the hundreds of "ereg" functions in the Vicidial PHP code to "preg" is on our development roadmap, and as we add new scripts and code we try to only use preg functions. If you would like to help with this change, we would welcome the help.
I would also like to mention that using ereg is NOT a security issue, and when security issues are found in Vicidial, we fix them quickly and issue an alert through these forums.