|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
26 - 25 = ?
Subscribe to this entry?

 [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 07:03:34 2022 UTC