Bug #16581 [Opn->Bgs]: help
| From: | cweiske@php.net | Date: | Mon, 14 Sep 2009 13:59:12 +0000 |
| Subject: | Bug #16581 [Opn->Bgs]: help | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-1621@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=16581&edit=1
ID: 16581
Updated by: cweiske@php.net
Reported By: eighore04 at yahoo dot com
Summary: help
-Status: Open
+Status: Bogus
Type: Bug
Package: VersionControl_SVN
Operating System: VersionControl_SVN::run
Package Version: Unknown
PHP Version: Irrelevant
Roadmap Versions:
New Comment:
-Status: Open
+Status: Bogus
Please use the mailing lists or IRC to get help. This is a bug
tracker.
http://pear.php.net/support/
Previous Comments:
------------------------------------------------------------------------
[2009-09-09 05:03:15] eighore04
Description:
------------
how cna i fix the bug in the versioncontrol_SVN::run method in windows
flatform. please send me a simple on how to fix this bug.. or maybe a
step by step method to do this. im working on xampp version 1.7.0 for
windows.. thanks..
Test script:
---------------
<?php
set_include_path(
dirname(dirname(__FILE__)).'/=phplib/'.PATH_SEPARATOR.
dirname(dirname(__FILE__)).'/=phplib/PEAR/'.PATH_SEPARATOR.
get_include_path()
);
require_once 'VersionControl/SVN.php';
echo '<pre>';
echo 'move to svn directory<br />';
//chdir('/home/ec-manila/ec-svn/dev');
// chdir('C:/xampp/htdocs/trunk/dev');
$svnstack = &PEAR_ErrorStack::singleton('VersionControl_SVN');
// Set up runtime options. Will be passed to all
// subclasses.
$options = array('fetchmode' => VERSIONCONTROL_SVN_FETCHMODE_RAW);
// Pass array of subcommands we need to factory
$svn = VersionControl_SVN::factory(array('status'), $options);
var_dump($svn);
// Define any switches and aguments we may need
#$switches = array('R' => true);
$switches = array('u' => true, 'v' => true);
//$current = getcwd();
//this is where i got my error.. run method did not see the path..
please help me
$args = array('C:\xampp\htdocs\trunk\dev');
echo "Current:" .$args;
// Run command
$output = $svn->status->run($args, $switches);
var_dump($output);
if ($output = $svn->status->run($args, $switches)) {
echo 'working';
print_r($output);
} else {
echo 'not working';
if (count($errs = $svnstack->getErrors())) {
foreach ($errs as $err) {
echo '<br />'.$err['message']."<br />\n";
echo "Command used: " . $err['params']['cmd'];
}
}
}
?>
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=16581&edit=1