Control: reassign 815987 cacti Control: retitle 815987 cacti requires porting to php7.0; mysql removed
Hello Paul > PHP Fatal error: Uncaught Error: Call to undefined function > mysql_pconnect() > (...) > Deprecated: mysql_pconnect(): The mysql extension is deprecated and > will be removed in the future: use mysqli or PDO instead On 26-02-16 16:01, Jean-Michel Vourgère wrote: > (...) > Can you try replacing mysql by mysqli in your configuration file? > (...) On 26-02-16 16:41, Jean-Michel Vourgère wrote: > I would try replacing > $database_type = "mysql"; > by > $database_type = "mysqli"; > maybe? Paul Gevers wrote: > (...) > mysqli_real_connect() expects parameter 6 to be long mysqli parameter 6 type was fixed in 5.20.3-2. Paul Gevers wrote: > (...)I did > some testing and everything seems to be OK with this change. So I think the s/mysql/mysqli/ fix should be done in cacti, not in adodb: mysql has been yelding deprecated warnings for a while. As you pointed out, its removal has been announced in debian-devel-announce. I think the source of confusion is that the adodb *driver name* is called "database_type" in cacti configuration file. This is not the best name, and maybe adding a comment there would be useful... I'm reassigning the bug to cacti. Please clone and reassign if you'd like php and/or adodb to continue to have mysql driver support... -- Nirgal