From: r dot vanicek at seznam dot cz Operating system: Debian GNU/Linux PHP version: 4.3.6 PHP Bug Type: Sybase (dblib) related Bug description: sybase_query always returns 1 on non-select queries
Description: ------------ sybase_query call should return false when the query fails. This is true if the query is a "select..." command. But for the other commands (eg. insert), sybase_query always return 1 no matter if the command is OK or not. This makes testing the query success/failure nearly impossible. Reproduce code: --------------- $ret = sybase_query("insert"); var_dump($ret); Expected result: ---------------- false Actual result: -------------- 1 -- Edit bug report at http://bugs.php.net/?id=28433&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28433&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28433&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28433&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28433&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28433&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28433&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28433&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28433&r=support Expected behavior: http://bugs.php.net/fix.php?id=28433&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28433&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28433&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28433&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28433&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28433&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28433&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28433&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28433&r=float