php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #31015 mysqli request to expose create length of field as a property of the field obje
Submitted: 2004-12-08 03:24 UTC Modified: 2004-12-27 12:57 UTC
From: newey499 at hotmail dot com Assigned: georg (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 5.0.2 OS: w2k
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: newey499 at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-12-08 03:24 UTC] newey499 at hotmail dot com
Description:
------------
mysqli Object

Exposing the create length of a field as a property of the field object would IMHO be a useful enhancement.

I suspect it should be fairly straightforward as it looks like the field object is acting as a wrapper for the MYSQL_FIELD struct.

Reproduce code:
---------------
N/A

Expected result:
----------------
N/A

Actual result:
--------------
N/A

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-08 06:37 UTC] georg@php.net
I will implemented this after fix of MySQL bug #6911 (http://bugs.mysql.com/?id=6911&edit=2).

Currently it's not possible to determine the correct length for certain character sets (like utf8).
 [2004-12-27 12:57 UTC] georg@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Please note that you need MySQL >= 4.1.8 to determine the 
correct length when using character sets which need more 
than 1 byte per character. (see 
http://bugs.mysql.com/bug.php?id=6911) 
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Dec 17 05:00:01 2025 UTC