From: gibex at remar dot pascani dot rdsnet dot ro Operating system: Linux PHP version: 4.3.4 PHP Bug Type: MySQL related Bug description: No database selected from time to time - URGENT MATTER
Description: ------------ problem persist in php 4.3.4 MySQL version 4.0.15-standard Apache version 1.3.29 (Unix) Kernel version 2.4.20-18.9 Can you provide me a solution of this. I can't patch the PHP from server. thanks Reproduce code: --------------- $conn = mysql_connect($dbhost, $dbuser, $dbpasswd) or die(mysql_error()); mysql_select_db($dbname, $conn) or die(mysql_error()); Actual result: -------------- No Database Selected -- Edit bug report at http://bugs.php.net/?id=26422&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26422&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26422&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26422&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26422&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26422&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=26422&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26422&r=support Expected behavior: http://bugs.php.net/fix.php?id=26422&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26422&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26422&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26422&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26422&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26422&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26422&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26422&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26422&r=float