Home » Database » DB_Sqlite_Tools » Bug #2902
DBTools->copySafe($outPath);
Details
| Submitted | 2004-12-05 17:24 UTC |
|---|---|
| From | tanguy dot pruvot at laposte dot net |
| Assigned | firman |
| Status | Closed |
| Package | DB_Sqlite_Tools |
| PHP Version | 5.0.1 |
| OS | Win32 |
| Roadmaps | (Not assigned) |
Comments
[2004-12-05 17:24 UTC] tanguy dot pruvot at laposte dot net
Description:
------------
DBTools->copySafe($outPath) has a problem...
at line 470 you coded :
$clone = @copy($databases, $path.$databases.'.bkp');
here $databases could include a path, static or relative..
but $path.$databases is not correct, you need to keep only filename to concate it to $path...
Reproduce code:
---------------
include_once('DB/Sqlite/Tools.php');
$DBTools = new DB_Sqlite_Tools($GLOBALS['workDb']->baseName);
$DBTools->copySafe($outPath);
$DBTools->createXMLDumps($outPath);