Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2.3
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Debian4 PHP 5.3.1
Description
config dsn: sqlite:///root/db3.db
i find parse_url will cause the problem
------------------
$dsn = str_replace("////", "/", $dsn);
$dsn = str_replace("
", "/", $dsn);
$dsn = preg_replace("/\/\/\/(.*):\//", "//$1:/", $dsn);
this fix will be correct in windows ,because dsn is sqlite://C:/aa/wafdb.db3
--------------------------------------------------------------
but in debian it will be fail.