PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB_Sqlite_Tools » Bug #2902

DBTools->copySafe($outPath);

Details

Submitted2004-12-05 17:24 UTC
Fromtanguy dot pruvot at laposte dot net
Assignedfirman
StatusClosed
PackageDB_Sqlite_Tools
PHP Version5.0.1
OSWin32
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);