History log of /php-src/ext/mysqli/mysqli.c (Results 1 – 25 of 413)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# fd73681c 09-Apr-2024 Arnaud Le Blanc

Fix GCC warning when using getThis() in a conditional (#13923)

Since GCC 12.x, using getThis() in a conditional yields a warning:

<source>:12:22: warning: the comparison will al

Fix GCC warning when using getThis() in a conditional (#13923)

Since GCC 12.x, using getThis() in a conditional yields a warning:

<source>:12:22: warning: the comparison will always evaluate as 'true' for
the address of 'This' will never be NULL [-Waddress]
12 | return getThis() ? 2 : 3;
| ^

show more ...


# 974a3d84 11-Mar-2023 David Carlier

ext/mysqli/pgsql: mysqli_fetch_object/pgsql_fetch_object raises ValueError on constructor args error.

Closes GH-10832.


# c0f2727e 31-Oct-2022 George Peter Banyard

Use zend_call_known_function() in ext-mysqli instead of building FCI/FCC


# 5b603709 27-Oct-2022 Kamil Tekiela

mysqli_query throws warning despite using silenced error mode (#9842)


# 66661ae6 11-Oct-2022 George Peter Banyard

Remove most usages of zend_fcall_info_args()

This reallocates the PHP array when one can just use the named_params fields to pass the positional arguments instead.

Only usage of zen

Remove most usages of zend_fcall_info_args()

This reallocates the PHP array when one can just use the named_params fields to pass the positional arguments instead.

Only usage of zend_fcall_info_args(_ex) remains in PDO.

show more ...


Revision tags: php-8.2.0RC1, php-8.1.10
# 1ad59b32 30-Aug-2022 George Peter Banyard

Update INI validator and displayers depending on INI type

Closes GH-9451


# 03fd4054 06-Sep-2022 Tim Düsterhus

Use php_info_print_table_header for actual column headers only (#9485)

Using php_info_print_table_header() for "Foo: bar" looks odd and out of place,
because the whole line is colored. I

Use php_info_print_table_header for actual column headers only (#9485)

Using php_info_print_table_header() for "Foo: bar" looks odd and out of place,
because the whole line is colored. It is also questionable from a HTML
semantics point of view, because it does not described the columns that follow.

The use of this across extensions is inconsistent. It was part of the skeleton,
but ext/date or ext/json already use a regular row.

show more ...


Revision tags: php-8.0.23, php-8.0.23RC1, php-8.1.10RC1, php-8.2.0beta3, php-8.2.0beta2, php-8.1.9, php-8.0.22, php-8.1.9RC1, php-8.2.0beta1, php-8.0.22RC1
# f0d53684 18-Jul-2022 Máté Kocsis

Declare ext/mysqli constants in stubs (#8811)

Revision tags: php-8.0.21, php-8.1.8, php-8.2.0alpha3, php-8.1.8RC1, php-8.2.0alpha2, php-8.0.21RC1
# 1bcd8d39 08-Jun-2022 Pierrick Charron

Update gen_stub to support #if around classes

Revision tags: php-8.0.20, php-8.1.7, php-8.2.0alpha1, php-7.4.30, php-8.1.7RC1, php-8.0.20RC1, php-8.1.6, php-8.0.19, php-8.1.6RC1, php-8.0.19RC1, php-8.0.18, php-8.1.5
# 3a4d1b61 12-Apr-2022 Tim Düsterhus

Mark parameter in ext/mysqli as sensitive

# debd38f8 02-Jun-2022 Máté Kocsis

Add support for sensitive parameters in stubs

Revision tags: php-7.4.29, php-8.1.5RC1, php-8.0.18RC1, php-8.1.4, php-8.0.17, php-8.1.4RC1, php-8.0.17RC1, php-8.1.3, php-8.0.16, php-7.4.28
# 01cbe390 13-Feb-2022 Kamil Tekiela

Remove mysqli_driver::$reconnect property

# 21ca8c43 06-Feb-2022 Kamil Tekiela

The INI mysqli.reconnect directive has been removed.

Revision tags: php-8.1.3RC1, php-8.0.16RC1, php-8.1.2, php-8.0.15
# d84dfa32 05-Jan-2022 Kamil Tekiela

Remove MYSQLI_USE_MYSQLND constant and all the code with it

# dad214c3 14-Mar-2022 Christoph M. Becker

Merge branch 'PHP-8.1'

* PHP-8.1:
Fix GH-8068: mysqli_fetch_object creates inaccessible properties


# aef65393 14-Mar-2022 Christoph M. Becker

Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
Fix GH-8068: mysqli_fetch_object creates inaccessible properties


# ef29ddcc 10-Mar-2022 Christoph M. Becker

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 str

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.

show more ...

Revision tags: php-8.1.2RC1, php-8.0.15RC1
# 50c7512f 30-Dec-2021 Kamil Tekiela

mysqli_result::__construct should throw exceptions (#7855)

Revision tags: php-8.0.14, php-8.1.1, php-7.4.27
# dea548be 05-Dec-2021 Christoph M. Becker

Merge branch 'PHP-8.1'

* PHP-8.1:
Fix #81658: MYSQL_OPT_LOAD_DATA_LOCAL_DIR not available in MariaDB


# 15e7e570 03-Dec-2021 David Carlier

Fix #81658: MYSQL_OPT_LOAD_DATA_LOCAL_DIR not available in MariaDB

This also introduces the boolean userland constant `MYSQLI_IS_MARIADB`.

Revision tags: php-8.1.1RC1, php-8.0.14RC1, php-7.4.27RC1, php-8.1.0, php-8.0.13, php-7.4.26, php-7.3.33, php-8.1.0RC6
# 90b7bde6 03-Nov-2021 Dmitry Stogov

Use more compact representation for packed arrays.

- for packed arrays we store just an array of zvals without keys.
- the elements of packed array are accessible throuf as ht->arPacked[

Use more compact representation for packed arrays.

- for packed arrays we store just an array of zvals without keys.
- the elements of packed array are accessible throuf as ht->arPacked[i]
instead of ht->arData[i]
- in addition to general ZEND_HASH_FOREACH_* macros, we introduced similar
familied for packed (ZEND_HASH_PACKED_FORECH_*) and real hashes
(ZEND_HASH_MAP_FOREACH_*)
- introduced an additional family of macros to access elements of array
(packed or real hashes) ZEND_ARRAY_ELEMET_SIZE, ZEND_ARRAY_ELEMET_EX,
ZEND_ARRAY_ELEMET, ZEND_ARRAY_NEXT_ELEMENT, ZEND_ARRAY_PREV_ELEMENT
- zend_hash_minmax() prototype was changed to compare only values

Because of smaller data set, this patch may show performance improvement
on some apps and benchmarks that use packed arrays. (~1% on PHP-Parser)

TODO:
- sapi/phpdbg needs special support for packed arrays (WATCH_ON_BUCKET).
- zend_hash_sort_ex() may require converting packed arrays to hash.

show more ...

Revision tags: php-7.4.26RC1, php-8.0.13RC1, php-8.1.0RC5, php-7.3.32
# c9d509b6 21-Oct-2021 Kamil Tekiela

Revert "Fix bug GH-1 (mysqli_sql_exception->sqlstate is inaccessible)"

This reverts commit 64fca5c5f0d18a3fec59a040935a6da5071072af.

# 64fca5c5 21-Oct-2021 Kamil Tekiela

Fix bug GH-1 (mysqli_sql_exception->sqlstate is inaccessible)

Revision tags: php-7.4.25, php-8.0.12, php-8.1.0RC4
# a01d7390 08-Oct-2021 Nikita Popov

Merge branch 'PHP-8.1'

* PHP-8.1:
Fixed bug #81494


# d001682a 08-Oct-2021 Nikita Popov

Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
Fixed bug #81494


12345678910>>...17