in the "The future of PHP" at http://www.ibm.com/developerworks/opensource/library/os-php-future/
states

ereg
The ereg extension, which supports Portable Operating System Interface (POSIX) regular expressions, is being removed from core PHP support. If you are using any of the POSIX regex functions, this change will affect you unless you include the ereg functionality. If you're using POSIX regex today, consider taking the time to update your regex functions to use the Perl-Compatible Regular Expression (PCRE) functions because they give you more features and perform better. Table 1 provides a list of the POSIX regex functions that will not be available after ereg is removed. Their PCRE replacements are also shown.

Table 1. ereg() functions and their PCRE equivalents
ereg() function || Similar preg() function
ereg(), eregi() || preg_match()
ereg_replace(), ereg_replacei() || preg_replace()

is ereg so indispensable to this module?

Comments

oadaeh’s picture

Where are you seeing the use of ereg() functions?

arhak’s picture

is listed as a requirement
I already used the module and didn't needed it
but still listed as a requirement, sorry

arhak’s picture

Component: Code » Documentation
Category: support » feature
Priority: Normal » Minor

* The following PHP extensions need to be installed: ereg, hash, date & pcre.

oadaeh’s picture

Category: feature » bug

Thanks for reporting that. I just found out today that that requirement was added by my using the PHP_Compatiblity PEAR module on the whole directory, and it was picking up the potx-cli.php file I have in the same directory as the module. I'll run it again later on the individual files and update the documentation.

Tebb’s picture

Hi Jason,

I just went round the same loop ... and found the same IBM article ... before reading this issue.

Are you saying that ereg() is *not* needed for this project?

It's still listed as a requirement for 6.x 1.0 Beta 3

Cheers, Dru-p

Tebb’s picture

Priority: Minor » Normal

Do you mind if I change this to normal priority from minor?

If this issue is already solved, then it would be good to save others going round the loop like I did.

Cheers, Dru-p

oadaeh’s picture

@Dru-p: Yes, ereg() is NOT needed for this project. I will try to get this fixed this week. I've been doing a lot of field work for the last three weeks or so and haven't had much time to focus on the changes I need to make.

Tebb’s picture

Hi Jason,

That's great. Thanks for your efforts on this.

I didn't mean to hassle you ;)

Dru-p

qpro’s picture

ereg still appears as requirement in README.TXT:

* The following PHP extensions need to be installed: ereg, hash, date & pcre.

egarias’s picture

I confirm it still appears

Patricia_W’s picture

I'm attempting to get smtp working with simplenews. In my latest test I get the following messages:

Deprecated function: Function eregi() is deprecated in PHPMailer->SmtpConnect() (line 594 of /home/justeart/public_html/sites/all/libraries/phpmailer/class.phpmailer.php).
Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://mail.messagingengine.com:465 (Connection timed out) in SMTP->Connect() (line 122 of /home/justeart/public_html/sites/all/libraries/phpmailer/class.smtp.php).
Deprecated function: Function eregi() is deprecated in PHPMailer->SmtpConnect() (line 594 of /home/justeart/public_html/sites/all/libraries/phpmailer/class.phpmailer.php).
Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in SMTP->Connect() (line 122 of /home/justeart/public_html/sites/all/libraries/phpmailer/class.smtp.php).
Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://:465 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in SMTP->Connect() (line 122 of /home/justeart/public_html/sites/all/libraries/phpmailer/class.smtp.php).

wundo’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

Closing very old (dead) issues, if you think this is still relevant please re-open.