php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58049 svn_diff() still has trouble with backslashes on Windows
Submitted: 2008-02-20 23:44 UTC Modified: 2008-06-03 20:38 UTC
From: edwardzyang at thewritingpot dot com Assigned:
Status: Closed Package: svn (PECL)
PHP Version: Irrelevant OS: Windows Vista
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: edwardzyang at thewritingpot dot com
New email:
PHP Version: OS:

 

 [2008-02-20 23:44 UTC] edwardzyang at thewritingpot dot com
Description:
------------
Although Windows support has greatly improved with 0.3, there are still some rough edges. Namely, svn_diff (and possibly other functions) have a hard time figuring out if a file is versioned or not if the slash immediately preceding the basename is not a forward slash.

Reproduce code:
---------------
<?php

// Assuming . and C:/Users/Edward/svn are valid working copies
svn_diff('file1.txt', 'C:/Users/Edward/svn\file1.txt');

// Alternative syntax, different error
svn_diff('file1.txt', 'C:/Users\Edward\svn\file1.txt');

Expected result:
----------------
(no output; diffs are successful)

Actual result:
--------------
200005 (Tried a versioning operation on an unversioned resource) 'C:\Users\Edwar
d\Webs\lab\svn\diff\tests\Polynomial.php' is not under version control
 in C:\Users\Edward\Webs\lab\svn\diff.php on line 5

155007 (Path is not a working copy directory) 'C:' is not a working copy
720003 (The system cannot find the path specified.  ) Can't open file 'C:\.svn\e
ntries': The system cannot find the path specified.
 in C:\Users\Edward\Webs\lab\svn\diff.php on line 5

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-03 20:38 UTC] scottmac@php.net
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-2025 The PHP Group
All rights reserved.
Last updated: Mon May 12 13:01:27 2025 UTC