| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Deprecate passing connection object to mysqli_get_client_info()
Closes GH-6777.
|
|
|
|
|
|
|
|
|
|
| |
Make MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT the new mysqli
error reporting default. Explicitly call
mysqli_report(MYSQLI_REPORT_OFF) to preserve previous behavior.
RFC: https://wiki.php.net/rfc/mysqli_default_errmode
Closes GH-6629.
|
|\
| |
| |
| |
| | |
* PHP-8.0:
Fix bug #80837
|
| |\
| | |
| | |
| | |
| | | |
* PHP-7.4:
Fix bug #80837
|
| | |
| | |
| | |
| | | |
The error needs to be reported on the statement, not the connection.
|
| | |
| | |
| | |
| | | |
Closes GH-6739
|
| | |
| | |
| | |
| | | |
Closes GH-6756.
|
| | |
| | |
| | |
| | |
| | | |
The driver version hasn't been updated in 13 years, so this number
is essentially meaningless. Check PHP_VERSION_ID instead.
|
| | |
| | |
| | |
| | |
| | | |
And remove an unnecessary test case that is already covered by the
other two.
|
| | |
| | |
| | |
| | | |
Closes GH-6767.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* @@session.old_passwords is present only in 5.6 and 5.7. Newer versions
already behave as if they have old_passwords=2.
* SET PASSWORD FOR ... = PASSWORD(...) syntax was removed in 8.0.
For all affected tests, versions that don't support newer SQL are
already explicitly excluded with version checks.
Closes GH-6729.
|
| | |
| | |
| | |
| | |
| | |
| | | |
If the SKIPIF section return nocache, don't cache the result. This
is used by tests that perform complex test set in conjunction with
skip checks, and need to be evaluated every time.
|
| | |
| | |
| | |
| | | |
Closes GH-6750.
|
| | |
| | |
| | |
| | |
| | |
| | | |
If the ZEROFILL flag is set for a field, do not convert it into
an integer (text protocol) or convert it explicitly into a padded
string (binary protocol).
|
| | |
| | |
| | |
| | |
| | |
| | | |
etc.
Now properties are ordered according to their layout in zend_object structure.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-8.0:
mysqlnd pam fix test error message
|
| |\ \
| | |/
| | |
| | |
| | | |
* PHP-7.4:
mysqlnd pam fix test error message
|
| | |
| | |
| | |
| | | |
Closes GH-6727.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* allow the user to specify a folder where files that can be sent
via LOAD DATA LOCAL can exist
* add mysqli.local_infile_directory for mysqli
(ignored if mysqli.allow_local_infile is enabled)
* add PDO::MYSQL_ATTR_LOCAL_INFILE_DIRECTORY for pdo_mysql
(ignored if PDO::MYSQL_ATTR_LOCAL_INFILE is enabled)
* add related tests
* fixes for building with libmysql 8.x
* small improvement in existing tests
* update php.ini-[development|production] files
Closes GH-6448.
Co-authored-by: Nikita Popov <nikic@php.net>
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-8.0:
Fix #78680: mysqlnd pam plugin missing terminating null
|
| |\ \
| | |/
| | |
| | |
| | | |
* PHP-7.4:
Fix #78680: mysqlnd pam plugin missing terminating null
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The PAM service requires the terminating null to be part
of the communication.
Tested with MariaDB-10.4(pam) and Percona Server 5.7.32(auth_pam_compat).
Also changed MySQL Enterprise test to the server side plugin, authentication_pam
as opposed to the client plugin mysql_clear_password.
Add additional check for pamtest user and pam service file as
all are required for the test.
More importantly, test result should actually succeed.
Thanks Geoff Montee for bug report.
Closes GH-78680.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This deprecates passing null to non-nullable scale arguments of
internal functions, with the eventual goal of making the behavior
consistent with userland functions, where null is never accepted
for non-nullable arguments.
This change is expected to cause quite a lot of fallout. In most
cases, calling code should be adjusted to avoid passing null. In
some cases, PHP should be adjusted to make some function arguments
nullable. I have already fixed a number of functions before landing
this, but feel free to file a bug if you encounter a function that
doesn't accept null, but probably should. (The rule of thumb for
this to be applicable is that the function must have special behavior
for 0 or "", which is distinct from the natural behavior of the
parameter.)
RFC: https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg
Closes GH-6475.
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | | |
* PHP-8.0:
Fix test expectation for PHP 8.0
Use ST_Y() instead of the deprecated/removed Y() in test
|
| | |
| | |
| | |
| | |
| | | |
Since float to string conversion is no longer locale dependent, we have
to expect a dot as decimal separator.
|
| |\ \
| | |/
| | |
| | |
| | | |
* PHP-7.4:
Use ST_Y() instead of the deprecated/removed Y() in test
|
| | | |
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-8.0:
Fix #74779: x() and y() truncating floats to integers
|
| |\ \
| | |/
| | |
| | |
| | | |
* PHP-7.4:
Fix #74779: x() and y() truncating floats to integers
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We must not use the locale dependent `atof()`, but instead use the
(hopefully) locale independent `zend_strtod()`, when converting string
representations of floating point numbers which are sent by the server.
Closes GH-6665.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Rename MYSQLI_REFRESH_SLAVE to MYSQLI_REFRESH_REPLICA in line with
upstream change in MySQL. The old name is retained for
backwards-compatibility reasons, and may be deprecated/removed in
the future.
Closes GH-6632.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
debug_zval_dump() currently prints refcount 1 for interned strings
and arrays, which does not really reflect the truth. These values
are not refcounted, so the refcount is misleading. Instead print
an "interned" tag.
Closes GH-6598.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
There doesn't seem to be any compelling reason to implement this
in mysqlnd rather than mysqli. It's just a loop over fetch_into.
This makes the function available under libmysqlclient as well,
and thus fixes bug #79372.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-8.0:
MySQLnd: Support cursors in store/get result
|
| |\ \
| | |/
| | |
| | |
| | | |
* PHP-7.4:
MySQLnd: Support cursors in store/get result
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This fixes two related issues:
1. When a PS with cursor is used in store_result/get_result,
perform a COM_FETCH with maximum number of rows rather than
silently switching to an unbuffered result set (in the case of
store_result) or erroring (in the case of get_result).
In the future, we might want to make get_result unbuffered for
PS with cursors, as using cursors with buffered result sets
doesn't really make sense. Unlike store_result, get_result
isn't very explicit about what kind of result set is desired.
2. If the client did not request a cursor, but the server reports
that a cursor exists, ignore this and treat the PS as if it
has no cursor (i.e. to not use COM_FETCH). It appears to be a
server side bug that a cursor used inside an SP will be reported
to the client, even though the client cannot use the cursor.
Fixes bug #64638, bug #72862, bug #77935.
Closes GH-6518.
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.4:
Fixed bug #67983
|
| |
| |
| |
| |
| | |
We need to check the BIT case first, otherwise it will get skipped
in INT_AND_FLOAT_NATIVE mode.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.4:
Fix mysqli_expire_password test for mariadb
|
| |\
| | |
| | |
| | |
| | | |
* PHP-7.3:
Fix mysqli_expire_password test for mariadb
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In MariaDB-10.4.3 EXPIRE passwords where supported for
MariaDB. This only behaves like MySQL when the system
variable disconnect_on_expired_passwords=1.
MariaDB if there was no password it could not be considered
expired. So the test is adjusted to use actual passwords.
(MariaDB commit a94b20a8e0d9e64eeaabdaaa7a3e03fcdb8a686e)
The error codes produced my MariaDB are different
however still conforming to the SQL specification.
Closes GH-6480.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
MySQL removed RENAME DATABASE in 18300001c1dbbfddf9a0adcbaeea68956102bdd0
(Sept 2007, 5.1.23). As this briefest existance is very insignificant lets remove it.
It also breaks when testing against MariaDB.
As the alternate path in this test covers all supported MySQL and MariaDB
versions and a signifant portion of unsupported versions lets keep it simple.
Closes GH-6459.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
fix mysqli_stmt_get_result_metadata_fetch_field test for mariadb
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
MariaDB extended the default decimal field to 39 characters
instead of MySQL's 31 characters.
This small change allows the test to pass on MySQL and MariaDB.
Closes GH-6484.
|
| | |
| | |
| | |
| | | |
These tests all require functions that no longer exist.
|
| | |
| | |
| | |
| | | |
%d because of line endings on Windows
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Fixed error reporting in mysqli_stmt::__construct
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
For the sake of simplicity, I've synchronized the implementation
with PHP 8, which means null values are also accepted.
Closes GH-6454.
|