From: godwizard at hotmail dot com Operating system: Windows 2000 PHP version: 4.3.4 PHP Bug Type: MSSQL related Bug description: Can't execute any SQL query after this kind of query
Description: ------------ Executing SQL query and trying to move next SQL query but after this query db connection is closed and you can't open db connection again. This problem come's always after that kind of query. Reproduce code: --------------- $result = mssql_query( "if exists (select kuvaurl from kuvagalleria where koiraid = $koiraID and oletus = '1') begin select kuvaurl from kuvagalleria where koiraid = $koiraID and oletus = '1' end else select '00091' as kuvaurl" ); while ($a_row = mssql_fetch_array( $result ) ) { $kuvaurl = "$a_row[kuvaurl]"; } Expected result: ---------------- I'd like to make another SQL query. Actual result: -------------- DB connection is closed and you can't execute any SQL query after that code in same page like it should. Problem is not in SQL Server, the code do sth what anybody doesn't understand. -- Edit bug report at http://bugs.php.net/?id=27420&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27420&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27420&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27420&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27420&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27420&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27420&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27420&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27420&r=support Expected behavior: http://bugs.php.net/fix.php?id=27420&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27420&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27420&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27420&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27420&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27420&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27420&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27420&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27420&r=float