Nikita Popov
e6dc9abdb7
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Support NO_BACKSLASH_ESCAPES with newer libmysqlclient
2020-09-18 15:25:35 +02:00
Nikita Popov
70cba36fc9
Support NO_BACKSLASH_ESCAPES with newer libmysqlclient
...
Requires the use of mysql_real_escape_string_quote().
2020-09-18 15:24:57 +02:00
Nikita Popov
d591e1c4f5
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
pdo_mysql/mysqli (native) libmysqlclient_r no-longer used
mysql: native mysql-8.0 uses _Bool
mysqli: use native api
2020-09-17 11:32:01 +02:00
Daniel Black
1aab7db6c8
pdo_mysql/mysqli (native) libmysqlclient_r no-longer used
...
The mysqlclient_r library exists in mysql-5.6 for compatibility only.
Later versions have it removed.
2020-09-17 11:27:31 +02:00
Daniel Black
c9abb0c0ac
mysql: native mysql-8.0 uses _Bool
...
MySQL-8.0 removes option MYSQLI_OPT_SSL_VERIFY_SERVER_CERT
2020-09-17 11:27:31 +02:00
Matteo Beccati
42b6b8a3ae
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #80027 Terrible performance using $query->fetch on queries with many bind parameters
2020-08-31 11:08:26 +02:00
Matteo Beccati
44ade0e875
Fix #80027 Terrible performance using $query->fetch on queries with many bind parameters
...
Added new flags that allow skipping param_evt(s) that are not used by drivers,
in a backwards and forward compatible manner. Updated the pgsql, mysql, sqlite
and oci drivers to properly use the new flags. I've left out pdo_dblib, which
doesn't have a param_hook, and pdo_firebird, which seems to be using
PARAM_EVT_NORMALIZE in a wrong context (param type vs event type).
2020-08-31 11:03:03 +02:00
Nikita Popov
981af26d7b
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #64705 errorInfo property of PDOException is null when PDO::__construct() fails
2020-08-11 17:13:28 +02:00
Ahmed Abdou
2fe2e5b48f
Fix #64705 errorInfo property of PDOException is null when PDO::__construct() fails
...
PDO driver constructors are throwing PdoException without setting
errorInfo, so create a new reusable function that throws exceptions
for PDO and will also set the errorInfo. Use this function in
pdo_mysql, pdo_sqlite, and pdo_pgsql.
2020-08-11 17:12:48 +02:00
Christoph M. Becker
844a1245ef
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #79596 : MySQL FLOAT truncates to int some locales
2020-05-15 09:11:44 +02:00
Christoph M. Becker
d1cd489a53
Fix #79596 : MySQL FLOAT truncates to int some locales
...
We must not do locale aware float to string conversion here; instead
we using our `snprintf()` implementation with the `F` specifier.
2020-05-15 09:09:41 +02:00
Nikita Popov
f684553c2c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix MySQL local infile / attr handling on big endian systems
2020-04-16 11:22:43 +02:00
guirish
a1c1736bfb
Fix MySQL local infile / attr handling on big endian systems
...
Make sure pointer types match what is used by libmysql everywhere.
Closes GH-5380.
2020-04-16 11:22:17 +02:00
Nikita Popov
58b17906f5
Apply tidy formatting
...
Mostly reindent PHP scripts to spaces.
2020-02-03 13:41:31 +01:00
Nikita Popov
248c783e7d
Specify explicit row order in PDO MySQL test
2019-12-27 17:25:58 +01:00
Nikita Popov
8753975418
Fix intermittent error in pdo_mysql___construct_options.phpt
...
For the love of god, don't write tests based on mt_rand!
2019-12-06 07:39:54 +01:00
Christoph M. Becker
00c9c480eb
Make test more robust
...
Time flies, so obviously the reported uptime may differ a bit (as
already occasionally noticed on CI); we cater to that by allowing a
delay of up to one second.
2019-11-04 12:22:04 +01:00
Christoph M. Becker
b142e8a4b3
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78623 : Regression caused by "SP call yields additional empty result set"
2019-10-07 09:18:46 +02:00
Christoph M. Becker
3322c78a88
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78623 : Regression caused by "SP call yields additional empty result set"
2019-10-07 09:17:29 +02:00
Christoph M. Becker
114c03b9a6
Fix #78623 : Regression caused by "SP call yields additional empty result set"
...
This reverts commit 41a4379cb4
.
2019-10-07 09:15:51 +02:00
Fabien Villepinte
0aa3acc6c4
Fix borked SKIPIFs
2019-09-30 17:51:41 +02:00
Nikita Popov
645b0372e3
Fix double free of DSN credentials
2019-09-09 10:10:41 +02:00
Christoph M. Becker
fd7309d194
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #41997 : SP call yields additional empty result set
2019-09-03 13:33:15 +02:00
Christoph M. Becker
b90cd91eba
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #41997 : SP call yields additional empty result set
2019-09-03 13:31:24 +02:00
Christoph M. Becker
41a4379cb4
Fix #41997 : SP call yields additional empty result set
...
When stored procedures are called, the "final result set is a status
result that includes no result set". Calling `::nextRowset()` on the
actual last result set should return FALSE, since there is actually no
further result set to be processed.
2019-09-03 13:29:30 +02:00
Christoph M. Becker
a18f53ec2c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
fix the problem for connect_attr, set db condition, and add a new attribute _server_host
2019-08-20 13:35:17 +02:00
Christoph M. Becker
3771d66142
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
fix the problem for connect_attr, set db condition, and add a new attribute _server_host
2019-08-20 13:33:45 +02:00
Qianqian Bu
cdf16c010a
fix the problem for connect_attr, set db condition, and add a new attribute _server_host
2019-08-20 13:31:58 +02:00
George Peter Banyard
6d6d954d0d
Cleanup of remaining E_STRICT in tests
2019-07-23 11:27:23 +02:00
Peter Kokot
7a6d737de7
Remove PHP_MYSQL variable
...
PHP_MYSQL variable was once defined by the ext/mysql (--with-mysql).
Closes GH-4399
2019-07-14 13:48:44 +02:00
Peter Kokot
a39ea91753
Simplify PHP_CHECK_PDO_INCLUDES calls
...
Conditional checks were once used for backwards compatibility with
phpize from PHP versions that didn't have this macro call yet.
Closes GH-4376
2019-07-08 10:24:41 +02:00
Sjon Hortensius
a7881df281
PDO: support username & password specified in DSN
2019-07-02 12:09:38 +02:00
Nikita Popov
d831f10724
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-07 10:57:51 +02:00
Nikita Popov
9569a0b8ca
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-07 10:57:43 +02:00
Nikita Popov
d7c7522be9
Enable STRICT_TRANS_TABLES in new test
...
The part testing error cases relies on this.
2019-06-07 10:57:09 +02:00
Nikita Popov
1c4e93e8bd
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-07 09:49:09 +02:00
Nikita Popov
a5f98139c9
Merge branch 'PHP-7.2' into PHP-7.3
2019-06-07 09:49:01 +02:00
Cameron Porter
7d1aa7534d
Fixed bug #38546
...
Properly support binding boolean parameters with emulated prepared
statements disabled. Also add the necessary mysqlnd support for
MYSQL_TYPE_TINY.
2019-06-07 09:48:43 +02:00
Peter Kokot
83e565e244
[ci skip] Migrate tests READMEs to Markdown
2019-05-12 22:03:10 +02:00
Peter Kokot
75fb74860d
Normalize comments in *nix build system m4 files
...
Normalization include:
- Use dnl for everything that can be ommitted when configure is built in
favor of the shell comment character # which is visible in the output.
- Line length normalized to 80 columns
- Dots for most of the one line sentences
- Macro definitions include similar pattern header comments now
2019-05-12 18:43:03 +02:00
Christoph M. Becker
9481cb43b3
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix tests
2019-04-29 09:07:13 +02:00
Christoph M. Becker
7faaf5a89a
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix tests
2019-04-29 09:05:04 +02:00
Christoph M. Becker
9bf11045db
Fix tests
...
These tests are obviously meant to test successful and failing uri:
DSNs, but did not pass proper file:// URIs, so actually ended up
testing for invalid data source URIs twice. We fix this, and adjust
the expectations accordingly.
We also unfork the -win32 variant, since both test cases are almost
identical, and the expected error message may be either one.
2019-04-29 09:04:33 +02:00
Christoph M. Becker
8446554fed
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Make MySQLPDOTest::extractVersion() more liberal
2019-04-28 23:50:43 +02:00
Christoph M. Becker
06b130579e
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Make MySQLPDOTest::extractVersion() more liberal
2019-04-28 23:49:19 +02:00
Christoph M. Becker
fc9cdb723b
Make MySQLPDOTest::extractVersion() more liberal
...
MySQL/MariaDB version strings may have suffixes which may contain dots;
for instance, Debian stretch has 5.5.5-10.1.37-MariaDB-0+deb9u1 or
such. Therefore, we make the version extraction more liberal, and only
require that there are at least three parts separated by dot, and
ignore additional parts.
We also fix an erroneous test expectation, which would be triggered on
CI now, right away. This patch has been provided by petk@.
2019-04-28 23:48:27 +02:00
Christoph M. Becker
3464929d64
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #77944 : Wrong meta pdo_type for bigint on LLP64
2019-04-27 18:48:09 +02:00
Christoph M. Becker
e561d4100b
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #77944 : Wrong meta pdo_type for bigint on LLP64
2019-04-27 18:47:32 +02:00
Christoph M. Becker
16609880f8
Fix #77944 : Wrong meta pdo_type for bigint on LLP64
...
When actually fetching the data, bigint (unsigned) column values are
returned as integers on LLP64 architectures, so their pdo_type has to
be PDO::PARAM_INT accordingly.
2019-04-27 18:46:27 +02:00
Fabien Villepinte
26dfce7f36
Replace dirname(__FILE__) by __DIR__ in tests
2019-03-15 22:55:30 +01:00