diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-12-14 15:41:56 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-12-17 10:01:02 +0100 |
commit | 890e4caf0be2bf625614e549f312ac18395651a0 (patch) | |
tree | 9f037e9b4266dca4556fc69c5ff98547f08da12c /ext/pdo_mysql/mysql_statement.c | |
parent | 95a4e1ea3b689c6bdc666435933047df4aff3f6f (diff) | |
download | php-git-890e4caf0be2bf625614e549f312ac18395651a0.tar.gz |
Drop support for max_length in mysqli_fetch_fields()
Retain the field, but always populate it with zero. This was
already the case for PS without length updating.
max_length has nothing lost in the field metadata -- it is a
property of the specific result set, and requires scanning the
whole result set to compute. PHP itself never uses max_length
with mysqlnd, it is only exposed in the raw mysqli API.
Keeping it for just that purpose is not worthwhile given the costs
involved. People who actually need this for some reason can easily
calculate it themselves, while making it obvious that the
calculation requires a full result set scan.
Diffstat (limited to 'ext/pdo_mysql/mysql_statement.c')
0 files changed, 0 insertions, 0 deletions