php-src/ext/mysqli
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
..
tests Fix GH-8068: mysqli_fetch_object creates inaccessible properties 2022-03-14 14:27:04 +01:00
config.m4 Don't assume libmysqlclient library name 2020-11-12 15:11:56 +01:00
config.w32 Generate function entries from stubs for mysqli 2020-04-19 21:56:47 +02:00
CREDITS
mysqli.c Fix GH-8068: mysqli_fetch_object creates inaccessible properties 2022-03-14 14:27:04 +01:00
mysqli.stub.php mysqli_get_client_info() cannot return null 2021-05-26 17:48:35 +02:00
mysqli_api.c Merge branch 'PHP-7.4' into PHP-8.0 2021-08-10 00:06:58 +02:00
mysqli_arginfo.h mysqli_get_client_info() cannot return null 2021-05-26 17:48:35 +02:00
mysqli_driver.c Remove embedded property from mysqli_driver 2020-11-09 11:00:16 +01:00
mysqli_exception.c Accept zend_object* in zend_update_property 2020-08-07 16:40:27 +02:00
mysqli_libmysql.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
mysqli_mysqlnd.h Drop support for libmysqlclient < 5.5 2020-09-17 12:05:30 +02:00
mysqli_nonapi.c Consistent error handling in mysqli_poll 2020-10-26 16:25:25 +01:00
mysqli_priv.h Remove support for libmysqlclient 5.0 2020-04-23 10:38:20 +02:00
mysqli_prop.c Fix [-Wundef] warning in MySQLi extension 2020-05-18 00:37:19 +02:00
mysqli_report.c Remove proto comments from C files 2020-07-06 21:13:34 +02:00
mysqli_result_iterator.c Convert E_ERROR to Error exception in mysqli_result iterator 2020-09-14 12:15:24 +02:00
mysqli_warning.c Consistent error handling in mysqli_poll 2020-10-26 16:25:25 +01:00
php_mysqli.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_mysqli_structs.h Remove vestiges of embedded mysql from tests 2020-09-17 19:02:20 +02:00