|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57686 svn_diff does not accept local paths with only backslashes
Submitted: 2007-05-25 23:08 UTC Modified: 2008-01-29 22:25 UTC
From: edwardzyang at thewritingpot dot com Assigned:
Status: Closed Package: svn (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: edwardzyang at thewritingpot dot com
New email:
PHP Version: OS:


 [2007-05-25 23:08 UTC] edwardzyang at thewritingpot dot com
svn_diff() does not seem to like target paths passed to it that only have backslashes. This is probably an artifact of not properly validating path1 and path2 before shuttling it off to svn_client_diff(), although I haven't the foggiest why this behavior would be the case.

Temporary fix is to replaces backslashes with regular slashes. Only one is necessary.

Possibly related to the bad-relative-paths bug.

Reproduce code:
svn_diff('c:\\wc\\file.txt', 32, 'c:\\wc\\file.txt', 33);

Assumed that this is a Windows box, c:\\wc is a working copy, and revisions 32 and 33 exist for the file.

Expected result:
Diff works fine, resources are returned

Actual result:
Error claiming that the files are not in a working copy.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-29 22:25 UTC] alan at akbkhome dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Jan 26 09:03:33 2022 UTC