Bug #13376: strings from ibase_fetch_row() have hidden garbage at end

From: Date: Fri, 21 Sep 2001 16:03:02 +0000
Subject: Bug #13376: strings from ibase_fetch_row() have hidden garbage at end
Groups: php.dev 
Request: Send a blank email to php-dev+get-66269@lists.php.net to get a copy of this message
From: tsnyder@internap.com Operating system: Linux 2.4.4-ac9 Debian viariant PHP version: 4.0.5 PHP Bug Type: Unknown/Other Function Bug description: strings from ibase_fetch_row() have hidden garbage at end I'm getting hidden garbage at the end of string values returned from Interbase; I'm using these strings as keys to arrays and getting back nothing. It appears there is junk at the end of the string (on the stack) that the array-index routine is picking up, but the string routines don't: $row = ibase_fetch_row($queryRv); $STATE = $row[0]; // this line prints "foo[RAW] = []" echo "foo[$STATE] = [".$foo[$STATE]."]"; // this line prints "foo[RAW] = [1]" echo "foo[$STATE] = [".$foo[trim($STATE)]."]"; For more detail see: http://www.shalos.com/trent/phpbug.tgz Any idea what might be wrong here? t. Trent W. Snyder P.S. from phpinfo(): './configure' '--with-apxs' '--with-mysql' '--with-interbase=/usr/local/interbase' '--enable-trans-sid' '--enable-trackvars' Apache/1.3.19 (Unix) PHP/4.0.5 mod_perl/1.25 mod_ssl/2.8.1 OpenSSL/0.9.6a -- Edit bug report at: http://bugs.php.net/?id=13376&edit=1

« previous php.dev (#66269) next »