Edit report at http://pear.php.net/bugs/bug.php?id=16892&edit=1

ID: 16892
Comment by: marknettle
Reported By: mark dot nettle at vodafone dot com
Summary: SVN.run() on windows doesn't execute properly
Status: Closed
Type: Bug
Package: VersionControl_SVN
Operating System: Windows Vista Business
Package Version: 0.3.3
PHP Version: 5.3.1
Assigned To: mrook
New Comment:

I'm encountering a similar problem. I'm using svnmanager (which uses
VersionControl_SVN) on a windows 2003 server box. The fix given here
(and in 0.3.4) doesn't solve this problem for me, I get:

'cmd' is not recognized as an internal or external command

Command used: "C:\WINDOWS\system32\cmd.exe /C
c:\PROGRA~1\Collab~1\Subver~1\svn list --config-dir e:\svnconfig
--non-interactive file:///e:/svn/test"

Note: the double quotes are actually in the command. That's what causes
the "filename, directory name, of volume label syntax is incorrect"

As it's already using "cmd.exe /C" (is that coming from
VersionControl_SVN or svnmanager??), I removed the double quotes by
commenting out line 654 of SVN.php, and it runs fine for me.

Previous Comments:

[2009-12-30 23:41:05] mrook

<div id="changeset">
<span class="removed">-Status: Open</span>
<span class="added">+Status: Closed</span>
<span class="removed">-Assigned To:</span>
<span class="added">+Assigned To: mrook</span>
<span class="removed">-Roadmap Versions:</span>
<span class="added">+Roadmap Versions: 0.3.4</span>
</div>This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on
pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.


[2009-12-08 19:23:02] shaneneuerburg

When doing an SVN checkout on a Windows machine ("Uniform Server" as
server platform, so a WAMP setup), I receive the following error:
"Failed to run the 'svn checkout' command: The filename, directory
name, or volume label syntax is incorrect."

The SVN executable was set to "svn" is set in the PATH environment

The command it executed was (including double quotes):
""svn" checkout --username [omitted] --password [omitted]
--no-auth-cache -r HEAD --non-interactive svn://

In order to fix the issue, I had to change the code to the following
(note the added "cmd /C" prefix):
if (!$this->passthru) {
exec("cmd /C $cmd 2>&1", $out, $ret_var);
} else {
passthru("cmd /C $cmd 2>&1", $ret_var);


Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
postedJan 13, '10 at 2:54a
activeJan 13, '10 at 2:54a

1 user in discussion

Marknettle: 1 post



site design / logo © 2022 Grokbase