adalmia3 / kfm

Automatically exported from code.google.com/p/kfm
0 stars 0 forks source link

kfm silently dies if mysql support not compiled into PHP #70

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install kfm on a server without mysql enabled

What is the expected output? What do you see instead?
kfm silently fails.  Setting error_reporting(E_ALL) shows the problem -- 
mysql_escape_string() is used in initialize.php in sql_escape()

I believe this use of mysql_escape_string (which is deprecated, BTW) should be 
replaced with an escape method that doesn't rely on the mysql libraries being 
available.

Original issue reported on code.google.com by ben.cl...@gmail.com on 8 Jun 2010 at 9:23

GoogleCodeExporter commented 8 years ago
one can use http://php.net/manual/en/function.sqlite-escape-string.php in 
sqlite :)

Original comment by ppinto.e...@gmail.com on 16 Feb 2011 at 12:31