PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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);