Welcome to all phpBB2 Refugees!This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.
Posted: Wed Feb 20, 2019 10:17 pm Post subject: PHP7 migration: mysqli
Second part of the "phpBB2 to PHP7 migration" guide.
This one is for mysqli, the API using mysqlnd (mysql native driver) that replaced the old mysql API.
Introduced in PHP5.0.0, mysqli is an API that brings better mysql integration in PHP: better performances, more tools, and object-oriented.
Its only issue is that... It's not used in PHP. I don't even know the history of PHP's "mysql3" vs "mysql4/5" driver, but anyway...
This procedure will replace your current mysql layer, instead of adding another one. This is mildly simpler.
Note: this SQL class supports caching, but it shouldn't break if your forum doesn't use caching. Please tell me if it does. It also includes sql_escape which is a function a lot of mod use.