php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14514 mysql_fetch_field always reports back max field length of zero
Submitted: 2001-12-14 08:23 UTC Modified: 2001-12-14 15:01 UTC
From: dgintz at airlinksystems dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.1.0 OS: linux
Private report: No CVE-ID: None
 [2001-12-14 08:23 UTC] dgintz at airlinksystems dot com
mysql_fetch_field - this function always gives a max field length of zero, no matter the type of variable.  Am I doing something wrong?  Also wondering if the "type" varchar should always come back as string.
Please let me know.
Thanks
dgintz@airlinksystems.com

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-14 15:01 UTC] sander@php.net
Works fine for me. You're probably doing something wrong; ask support questions on the appropriate mailinglist (see http://www.php.net/support.php).
PHP has no real types. If you use a string-function on anything (even numbers), it will automatically be converted to a string.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 06:01:30 2024 UTC