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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dgintz at airlinksystems dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 09:01:27 2025 UTC