[prev in list] [next in list] [prev in thread] [next in thread]
List: php-internals
Subject: [PHP-DEV] PHP 4.0 Bug #2409: tinyint not brought in as integer
From: mbushey () virtualintensity ! com
Date: 1999-09-29 15:40:27
[Download RAW message or body]
From: mbushey@virtualintensity.com
Operating system: Linux 2.2.5 !686
PHP version: 4.0 Beta 2
PHP Bug Type: MySQL related
Bug description: tinyint not brought in as integer
$query="SELECT IDgrp, bit FROM " . $mysql_tablename;
$res2=mysql_query($query);
while ($row=mysql_fetch_array($res2)) {
#this should work but does not
echo $row["bit"] & $row["IDgrp"];
#changing the var type to integer works
$a = (int) $row["bit"];
$b = (int) $row["IDgrp"];
echo $a & $b;
}
PHP should bring in a MySQL TinyINT as an Integer, right?
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
For additional commands, e-mail: php-dev-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic