Bug #17477 [Com]: Windows directory not quoted in the $arg array of the SVN->run() method
| From: | slungo@9online.fr | Date: | Fri, 11 Jun 2010 12:12:41 +0000 |
| Subject: | Bug #17477 [Com]: Windows directory not quoted in the $arg array of the SVN->run() method | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-3922@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=17477&edit=1
ID: 17477
Comment by: slungo@9online.fr
Reported By: slungo at 9online dot fr
Summary: Windows directory not quoted in the $arg array of the
SVN->run() method
Status: Feedback
Type: Bug
Package: VersionControl_SVN
Operating System: Windows XP Pro
Package Version: 0.3.3
PHP Version: 5.3.0
Roadmap Versions:
New Comment:
Thanks, I've got the last trunk version but it doesn't solve my second
problem about spaces in the destination directory (in which to perform
the checkout). I still have to appy escapeshellarg on this destination
directory.
But is it on you side to correct the problem, or on the phing svn task
extension side?
Previous Comments:
------------------------------------------------------------------------
[2010-06-09 23:58:27] doconnor
-Status: Open
+Status: Feedback
Thank you for taking the time to report a problem with the package.
This problem may have been already fixed by a previous change that
is in the SVN of the package. Please checking out the SVN
repository of this package and upgrade
svn checkout
svn.php.net/repository/pear/packages/VersionControl_SVN/trunk
pear upgrade package2.xml
or
pear upgrade package.xml
If you are able to reproduce the bug with the latest SVN,
please change the status back to "Open".
Again, thank you for your continued support of PEAR.
This was probably fixed by Bug #16892
svn checkout
http://svn.php.net/repository/pear/packages/VersionControl_SVN/trunk/
pear upgrade -f package.xml
... and see if that fixes it
------------------------------------------------------------------------
[2010-06-09 16:20:40] berthold0022
Description:
------------
I'm using phing and its SvnCheckoutTask and SvnUpdateTask
to automate build operation, which are
using VersionControl_SVN. As I'm working on windows using a
path containing spaces, and as the
current VersionControl_SVN::run() method doesn't quote the
$args array elements when creating the
$cmd, the command crashes because it can't resolve the path.
For now I'have added a loop at the top of the run method to
resolve it:
foreach($args as $k=>$v)
$args[$k] = escapeshellarg($v);
Finally to make the command work, I'd to comment the line
654 of the SVN.php file.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=17477&edit=1