#35536 [NEW]: mysql_field_type returns unknown for INT(11) columns
From: nevis2us at infoline dot su
Operating system: Linux Gentoo
PHP version: 4.4.1
PHP Bug Type: MySQL related
Bug description: mysql_field_type returns unknown for INT(11) columns
Description:
------------
mysql_field_type returns 'unknown' for INT(11) columns
in MySQL 5.0.16 Same results with PHP 5.0.5
No problems with MySQL 4.1.15
Also works for decimal types in 5.0
Reproduce code:
---------------
Call mysql_field_type for an INT column in MySQL 5.0.16
Expected result:
----------------
Should return 'int'
Actual result:
--------------
'unknown'
--
Edit bug report at http://bugs.php.net/?id=35536&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35536&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35536&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35536&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35536&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35536&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35536&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35536&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35536&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35536&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35536&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35536&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35536&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35536&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35536&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35536&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35536&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35536&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35536&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35536&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35536&r=mysqlcfg
Thread (14 messages)
- nevis2us at infoline dot su
- tony2001@php.net#35536 [Opn->Fbk]: mysql_field_type returns unknown for INT(11) columns
- nevis2us at infoline dot su#35536 [Fbk->Opn]: mysql_field_type returns unknown for INT(11) columns
- tony2001@php.net#35536 [Opn->Fbk]: mysql_field_type returns unknown for INT(11) columns
- nevis2us at infoline dot su#35536 [Fbk->Opn]: mysql_field_type returns unknown for INT(11) columns
- tony2001@php.net#35536 [Opn->Bgs]: mysql_field_type returns unknown for INT(11) columns
- nevis2us at infoline dot su#35536 [Bgs]: mysql_field_type returns unknown for INT(11) columns
- tony2001@php.net#35536 [Bgs]: mysql_field_type returns unknown for INT(11) columns
- nevis2us at infoline dot su#35536 [Bgs->Opn]: mysql_field_type returns unknown for INT(11) columns
- tony2001@php.net#35536 [Opn->Fbk]: mysql_field_type returns unknown for INT(11) columns
- nevis2us at infoline dot su#35536 [Fbk->Opn]: mysql_field_type returns 'unknown' for DECIMAL columns in MySQL 5.0+
- tony2001@php.net#35536 [Opn->Asn]: mysql_field_type returns 'unknown' for DECIMAL columns in MySQL 5.0+
- nevis2us at infoline dot su#35536 [Asn]: mysql_field_type returns 'unknown' for DECIMAL columns in MySQL 5.0+
- tony2001@php.net#35536 [Asn->Csd]: mysql_field_type returns 'unknown' for DECIMAL columns in MySQL 5.0+