From: bobpilly at yahoo dot co dot uk Operating system: Fedora Core 3 2.6.10-1.760_FC3 PHP version: 5.0.3 PHP Bug Type: MSSQL related Bug description: mssql_query() doesnt seem to return a postive result identifier on success
Description: ------------ I have just upgraded to php 5.0.3 and a simple if statement based on the identifier that worked with php 5.0.2 no longer works. I have now downgraded back to php 5.0.2 and everything is working fine again. when trying a print of $result in 5.0.2 i am returned a '1' character, when trying the same in 5.0.3 the $result variable is empty. I have checked the database and the query in running correctly and the field is being updated. May be a case that the function has changed and its not in the online documentation yet? Reproduce code: --------------- $numero= mssql_connect($dbserver,$dbuser,$dbpass) or die ("Unable to connect to database server"); $query = "update test_table set phonenum = '$phonenum' where ind = '$ind'"; $result = mssql_query($query,$numero); if($result){ print "update success!"; } else{ print "update failure!"; } Expected result: ---------------- update success! Actual result: -------------- update failure! -- Edit bug report at http://bugs.php.net/?id=32018&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32018&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32018&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32018&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32018&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32018&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32018&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32018&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32018&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32018&r=support Expected behavior: http://bugs.php.net/fix.php?id=32018&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32018&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32018&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32018&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32018&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32018&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32018&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32018&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32018&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32018&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32018&r=mysqlcfg