go to bug id or search bugs for
./configure --with-mysql=/usr --with-imap --with-db2 --with-apache=../apache_1.3.12 --enable-track-vars --with-pgsql=/usr --with-zlib --with-ldap
Under 4.0.4pl1, I'm getting lots of problems with database links. It keeps popping up (sporadically) with 1 is not a valid (mySQL|PostgreSQL) link resource.
Backrevving down to 4.0.2 works perfectly fine. I see other bug reports on this, but I don't think I've seen one that points out it as a bug that affects both database functions.
If you need me to, I can re-upgrade to provide examples that you can look at.
Add a Patch
Add a Pull Request
A bit more info including test scripts would be good here, please keep the test scripts as simple as possible.
If problem still exists when using PHP 4.0.5, reopen.