Bug #71639 [Opn->Fbk]: mysqli_fetch_field_direct def returns blank
| From: | ab@php.net | Date: | Sun, 21 Feb 2016 11:02:49 +0000 |
| Subject: | Bug #71639 [Opn->Fbk]: mysqli_fetch_field_direct def returns blank | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-199363@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71639&edit=1
ID: 71639
Updated by: ab@php.net
Reported by: andrew dot collier82 at yahoo dot com dot au
Summary: mysqli_fetch_field_direct def returns blank
-Status: Open
+Status: Feedback
Type: Bug
Package: MySQLi related
Operating System: Windows 8.1
PHP Version: 5.5.32
Block user comment: N
Private report: N
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
Thanks for the report. We need a complete reproduce case with the complete code, table creation and
some data that reproduce the issue.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2016-02-21 03:10:33] andrew dot collier82 at yahoo dot com dot au
Description:
------------
mysqli_fetch_field_direct does not return any value for default.
Test script:
---------------
$colInc=0;
while ($colInc < mysqli_num_fields($result)){
$field = mysqli_fetch_field_direct($result, $colInc);
$returnFields[] = $field->name;
$returnFieldType[] = $field->type;
$returnFieldDefault[] = $field->def;
$colInc++;
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71639&edit=1