From: captain5ive at yahoo dot com Operating system: Windows 2000 PHP version: 4.3.10 PHP Bug Type: MSSQL related Bug description: php_mssql.dll generates error despite the query is correct.
Description: ------------ Using php_mssql.dll when you query Microsoft SQL Server 2000, mssql returns the following informational message. Changed database context to 'SampleDB'. This is not an error but the new mssql extension returns error. Every php application that works with SQL Server now encounter this bug if they handle errors. Reproduce code: --------------- $link = mssql_connect("server", "sa", ""); mssql_select_db("SampleDB", $link); mssql_query("DELETE FROM SampleTable WHERE id=10", $link) or die(mssql_get_last_message()); Expected result: ---------------- No error must be returned because everything is ok. Actual result: -------------- The following error is returned. Changed database context to 'SampleDB'. -- Edit bug report at http://bugs.php.net/?id=31372&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31372&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31372&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31372&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31372&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31372&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31372&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31372&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31372&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31372&r=support Expected behavior: http://bugs.php.net/fix.php?id=31372&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31372&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31372&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31372&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31372&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31372&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31372&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31372&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31372&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31372&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31372&r=mysqlcfg