Michael Voříšek
0ab51a9561
Fix mysql tests with non-standard server port
...
Closes GH-9744
2023-04-20 08:45:14 +02:00
Ilija Tovilo
e1ec67acd6
Unparallelize IO heavy tests
...
Alternative to GH-10892. This is somewhat unfortunate since these are also the
slow tests. I'm also not sure if this actually helps.
Closes GH-10953
2023-03-27 16:33:36 +02:00
Daniel Black
c21a5920ac
ext/mysqli tests "using password" optional in error messages (part 2)
...
Like GH-10035 for ext/mysqli/tests/mysqli_connect.phpt test.
Closes GH-10064.
2022-12-08 14:23:33 +01:00
Daniel Black
b6b4a628a5
ext/mysqli tests "using password" optional in error messages
...
Closes GH-10035.
2022-12-05 13:12:23 +01:00
Kamil Tekiela
ec1f58c871
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Add NEWS entry for #9841
Add a temporary fix for insufficient buffer size in mysqlnd (#9835 )
mysqli_query throws warning despite using silenced error mode (#9842 )
2022-10-27 18:31:38 +01:00
Kamil Tekiela
5b60370906
mysqli_query throws warning despite using silenced error mode ( #9842 )
2022-10-27 18:24:28 +01:00
Christoph M. Becker
48ae3a0e3f
gh9590.phpt requires ext/posix
2022-10-01 14:34:24 +02:00
Christoph M. Becker
47c79a97f5
Use --EXTENSIONS-- section for newly added tests
...
As of PHP 8.1.0, the `--EXTENSIONS-- section is properly supported, and
CIs may make use of that (our AppVeyor CI does). Thus it is important
to list required extensions there, since otherwise they may not be
loaded, causing the test to be skipped, or worse, to be borked.
2022-10-01 14:08:59 +02:00
Arnaud Le Blanc
d4b99542d5
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
[ci skip] NEWS
Return immediately when FD_SETSIZE is exceeded (#9602 )
2022-10-01 11:23:34 +02:00
Arnaud Le Blanc
80232de0e4
Return immediately when FD_SETSIZE is exceeded ( #9602 )
2022-10-01 11:20:43 +02:00
Kamil Tekiela
7d65cc81f8
Remove mysqli_close from clean_table.inc
...
Backported from master. See https://github.com/php/php-src/pull/8427
2022-06-01 00:02:55 +01:00
Christoph M. Becker
8e688e0cf2
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix mysqli tests wrt. MySQL 8.0.28
2022-05-09 10:57:30 +02:00
Christoph M. Becker
a7a590211e
Fix mysqli tests wrt. MySQL 8.0.28
...
As of MySQL 8.0.28, `utf8mb3` charset is reported by the server, but
mysqlnd doesn't support it yet. As a stop-gap measure, we ignore that
charset for now.
Closes GH-8480.
2022-05-09 10:55:32 +02:00
Michael Voříšek
36de002cc6
Verify generated files are up to date in CI
...
Closes GH-8295
2022-04-21 23:25:47 +02:00
Christoph M. Becker
22f8886038
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-8267: MySQLi uses unsupported format specifier on Windows
2022-04-07 17:06:20 +02:00
Christoph M. Becker
7c702b72f2
Fix GH-8267: MySQLi uses unsupported format specifier on Windows
...
Instead of using the unsupported `%I64u` and `%I64d` format specifiers
on Windows, we use the portable `PRIu64` and `PRId64` specifiers.
The `L64()` macro and the `my_longlong` typedef should be adapted as
well, as the `i64` literal suffix is still supported by MSVC, but using
`LL` or `ll` is recommended[1], and the standard `int64_t` is available
there anyway. This is not urgent, though.
[1] <https://docs.microsoft.com/en-us/cpp/cpp/numeric-boolean-and-pointer-literals-cpp?view=msvc-170#integer-literals >
Closes GH-8268.
2022-04-07 17:03:15 +02:00
Máté Kocsis
2b4fee03af
Mark ext/mysqli properties as readonly for documentation purposes
2022-04-05 13:24:21 +02:00
Christoph M. Becker
b92ae85b25
Fix typo (--EXTENSION-- → --EXTENSIONS--)
2022-03-14 15:14:27 +01:00
Christoph M. Becker
aef65393be
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-8068: mysqli_fetch_object creates inaccessible properties
2022-03-14 14:29:30 +01:00
Christoph M. Becker
ef29ddcc27
Fix GH-8068: mysqli_fetch_object creates inaccessible properties
...
When fetching into objects, we need to create object style hash tables,
i.e. where numeric column names are stored as string keys instead of
integer keys. Instead of the slightly more efficient alternative to
create the desired hash table in the first place, we go for the more
readable implementation and convert the array style hash table using
`zend_symtable_to_proptable()`.
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
Closes GH-8189.
2022-03-14 14:27:04 +01:00
Kamil Tekiela
2bae4e8dbb
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix bug GH-8058 - mysqlnd segfault when prepare fails
2022-02-14 12:02:57 +00:00
Kamil Tekiela
93a8d5cd17
Fix bug GH-8058 - mysqlnd segfault when prepare fails
...
Closes GH-8061
2022-02-14 11:45:17 +00:00
Kamil Tekiela
1f0661d3e5
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Strip MariaDB 10 prefix
2022-01-19 21:45:19 +00:00
Kamil Tekiela
5fc0db989e
Strip MariaDB 10 prefix
...
Closes GH-7972
2022-01-19 21:39:42 +00:00
Máté Kocsis
62e4ac9439
Add support for custom property links
...
Closes GH-7892
2022-01-07 08:28:26 +01:00
Máté Kocsis
f70ca0acd4
Mark mysqli_driver properties readonly
2022-01-04 08:41:02 +01:00
Christoph M. Becker
d963b3f015
mysqli_next_result_no_repeat_error.phpt must not use --EXTENSIONS--
...
This is only properly supported as of PHP 8.1.0[1], and may cause
spurious test failures for older versions[2].
[1] <https://github.com/php/php-src/pull/6787 >
[2] <42044075/job/tk4138s43p1953hx
>
2021-12-31 00:24:56 +01:00
Kamil Tekiela
b51f51952a
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix formatting in the new mysqli test
2021-12-30 19:28:35 +00:00
Kamil Tekiela
49512b6b36
Fix formatting in the new mysqli test
2021-12-30 19:25:32 +00:00
Christoph M. Becker
ae9e98640a
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix bug where large bigints may be truncated
2021-12-30 19:10:36 +01:00
NathanFreeman
b3903515bf
Fix bug where large bigints may be truncated
...
Unless stringified results are requested, we need to parse large
bigints as unsigned, to avoid wrap-around behavior.
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-7837.
2021-12-30 19:07:36 +01:00
Kamil Tekiela
8869bbe0e9
Fix bug GH-7746 (mysqli_sql_exception->sqlstate is inaccessible)
...
Closes GH-7747
2021-12-30 14:23:06 +00:00
David Carlier
15e7e570a5
Fix #81658 : MYSQL_OPT_LOAD_DATA_LOCAL_DIR not available in MariaDB
...
This also introduces the boolean userland constant `MYSQLI_IS_MARIADB`.
2021-12-05 19:11:04 +01:00
Kamil Tekiela
15a2c8660b
mysqli_reap_async_query error reporting ( #7629 )
2021-11-09 18:16:36 +00:00
Kamil Tekiela
c9d509b668
Revert "Fix bug GH-1 (mysqli_sql_exception->sqlstate is inaccessible)"
...
This reverts commit 64fca5c5f0
.
2021-10-21 19:01:01 +01:00
Kamil Tekiela
64fca5c5f0
Fix bug GH-1 (mysqli_sql_exception->sqlstate is inaccessible)
2021-10-21 18:51:16 +01:00
Nikita Popov
d001682ac4
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fixed bug #81494
2021-10-08 15:02:29 +02:00
Nikita Popov
df940a6dc3
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fixed bug #81494
2021-10-08 15:00:51 +02:00
Nikita Popov
fcabe693ba
Fixed bug #81494
...
Use the proper error reporting mechanism rather than throwing a
warning. This requires something of a hack because we don't have
direct access to the connection object at this point.
2021-10-08 15:00:10 +02:00
Máté Kocsis
1bf1481a2a
Specify a few array func info entries ( #7425 )
2021-08-30 14:29:18 +02:00
Máté Kocsis
8e6e9838b0
Add support for generating MAY_BE_ARRAY_OF_REF func info flag ( #7416 )
2021-08-30 13:50:34 +02:00
Máté Kocsis
7d3cdb3681
Fix mysqli stub alias verification issues
...
I had to add a few no-verify annotations since the return type of the function and method counterparts cannot be aligned properly (easily)
2021-08-26 17:36:53 +02:00
Máté Kocsis
17ccabc6b6
Generate optimizer func info from stubs for ext/curl, ext/mysqli, ext/pcre ( #7407 )
2021-08-26 17:11:45 +02:00
Christoph M. Becker
35332503f4
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fix #74544 : Integer overflow in mysqli_real_escape_string()
2021-08-10 00:07:45 +02:00
Christoph M. Becker
606829f31f
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #74544 : Integer overflow in mysqli_real_escape_string()
2021-08-10 00:06:58 +02:00
Christoph M. Becker
5977610de1
Fix #74544 : Integer overflow in mysqli_real_escape_string()
...
The patch has been provided by @johannes.
Closes GH-7353.
2021-08-10 00:05:39 +02:00
Kamil Tekiela
cd0cd3d31e
Fix typos ( #7327 )
2021-08-01 18:03:30 +01:00
Kamil Tekiela
abacd91cc8
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Prevent mysqli::next_result from reporting errors from previous calls (#7304 )
2021-07-27 11:57:39 +01:00
Kamil Tekiela
65e2dbd0de
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Prevent mysqli::next_result from reporting errors from previous calls (#7304 )
2021-07-27 11:56:14 +01:00
Kamil Tekiela
d26069a2f1
Prevent mysqli::next_result from reporting errors from previous calls ( #7304 )
2021-07-27 11:50:28 +01:00