Lines Matching refs:bin
25 $bin = '';
28 $bin .= '1';
31 $bin .= '0';
34 return $bin;
72 $bin = ($bits < 32) ? decbin($value) : dec32bin($value, $bits);
73 $sql = sprintf("INSERT INTO test(id, bit_value) VALUES (%s, b'%s')", $value, $bin);
74 for ($i = 0; ($i < strlen($bin)) && ($bin[$i] == '0'); $i++)
76 $bin2 = substr($bin, $i, strlen($bin));
88 if (($value != $row['id']) || (($bin != $row['_bin']) && ($bin2 != $row['_bin']))) {
90 … printf("[006 - %d] Insert of %s in BIT(%d) column might have failed. id = %s, bin = %s (%s/%s)\n",
91 $bits, $value, $bits, $row['id'], $row['_bin'], $bin, $bin2);
96 printf("%10s %64s\n%10s %64s\n", '_bin', $row['_bin'], 'insert', $bin);