Page MenuHomePhabricator

Use mysqli both in Zend and HHVM
Closed, InvalidPublic


maxsem@tin:~$ dpkg -l '*php5-mysql*'
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                            Version              Architecture         Description
ii  php5-mysql                      5.6.27+dfsg-0+deb8u1 amd64                MySQL module for php5
un  php5-mysqli                     <none>               <none>               (no description available)
un  php5-mysqlnd                    <none>               <none>               (no description available)

Because HHVM supports only mysqli, we end up using different bindings dependent on which runtime is used. This non-uniformity increases chance of encountering a problem. The old mysql extension is going away anyway due to T120333.

Event Timeline

MaxSem created this task.Nov 1 2016, 8:34 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 1 2016, 8:34 PM

@MaxSem apparently php5-mysqli is not a package, instead it is bundled in php5-mysql, we just need to add the extension to php.ini

That is at least what happends on Ubuntu

MaxSem closed this task as Invalid.Nov 22 2016, 9:03 PM

D'oh, thanks Paladox!

maxsem@tin:~$ php5 -a
Interactive mode enabled

php > var_dump(function_exists('mysqli_connect'));
php > var_dump(function_exists('mysql_connect'));

your welcome :)