[TYPO3-dev] mysql/mysqli and prepared statements

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Sat Oct 6 23:07:32 CEST 2007


Hi!

Shall TYPO3 provide means to use the mysqli-driver and get support for 
prepared statements? I say yes. There are places in the Core where the 
"same" statement is called within a loop.

Easiest way: make a "mysqli" sysext which gets installed automatically 
if the installer finds mysqli is loaded.

ALternative way: make t3lib_div::makeInstance factory aware. That means 
it should see if the class in question has a factory method and call 
that. Add a factory to trlib_db that returns an instance of 
t3lib_db_mysqli if the PHP extension is loaded.

Masi




More information about the TYPO3-dev mailing list