php.net |  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: edwardzyang at thewritingpot dot com
New email:
PHP Version: OS:

 

 [2007-05-25 23:08 UTC] edwardzyang at thewritingpot dot com
Description:
------------
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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 pecl.php.net.

In case this was a pecl.php.net 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-2019 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 23:01:25 2019 UTC