If you upgraded PHP and you experience:
1) "Cannot find server or DNS error" in your web browser when going to phpMyAdmin, webmail, squirrelmail, and other PHP pages.
2) And/or you receive an error similar to "FATAL: emalloc(): Unable to allocate -287672 bytes" in your /usr/local/psa/apache/logs/error_log file when trying to run these and other php scripts.
Then do not use the following configuration option when compiling php.
--with-system-regex
Don't know what system regex library really does and how bad it is needed. But, removing it fixed my PHP problems so it is gone for now.
http://www.php.net/manual/en/install.configure.php
--with-regex=TYPE
regex library type: system, apache, php.
--with-system-regex
Use system regex library (deprecated).