|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-07 21:27 UTC] sniper@php.net
[2004-01-09 08:50 UTC] iliaa@php.net
[2004-01-09 09:13 UTC] jim dot hatfield at insignia dot com
[2004-01-29 04:45 UTC] asuter at vianetworks dot ch
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 17:00:01 2025 UTC |
Description: ------------ Retrieve one row from a Sybase database using DB-Lib and Freetds 0.61_1. "manager" is a smallint and "ts_admin" is a "bit". The first record has field values 1 and 0 for these fields respectively. I did a "portupgrade lang/php4" between the two runs so I know the only thing which changed was the PHP version. Reproduce code: --------------- $db = sybase_connect($server, $user, $pass); sybase_select_db($dbname, $db); res = $sybase_query("select manager, ts_admin from employees", $db) $row = sybase_fetch_row($res); echo "Manager = \"$row[0]\"\n"; echo "TS_Admin = \"$row[1]\"\n"; Expected result: ---------------- 4.3.3 returns: Manager = "1" TS_Admin = "0" Actual result: -------------- 4.3.4 returns: Manager = "1" TS_Admin = "0 " note the space padding. When tested in an if this returns TRUE when without the padding it is FALSE