|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-05-31 08:42 UTC] der dot ronny at gmx dot net
Description:
------------
At the bash "svn export" works fine with local repo. The same command "svn_export" from pecl-php-package says "Path is not a working copy directory". All other commands like "svn log" are working without any problems the same way as at the bash.
Reproduce code:
---------------
Bash: svn log file:///srv/svn/repos/tess - WORKS!
PHP print_r(svn_log('file:///srv/svn/repos/tess')); - WORKS!
Bash: svn export file:///srv/svn/repos/tess /srv/www/htdocs/tessnnew - WORKS!
PHP: svn_export('file:///srv/svn/repos/tess','/srv/www/htdocs/tessnew'); - DID NOT WORK!
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 00:00:02 2025 UTC |
have you tried svn_export('file:///srv/svn/repos/tess','file:///srv/www/htdo cs/tessnew');Can you add a example on php.net - notice the 'false' at the end. svn_export('/srv/svn/repos/tess','/srv/www/htdocs/tessnew', false); Regards AlanBoth versions don't work :-( svn_export('/srv/svn/repos/tess','/srv/www/htdocs/tessnew', false); svn_export('/file:///srv/svn/repos/tess','file:///srv/www/htdocs/tessnew', false); How can a add an example on php.net? Cheers RonI use the SVN 1.5.2 rpm from SUSE and your stable plugin 1.0.0.0. I don't understand why svn_export didn't work and all over commands work, e.g. svn_checkout('file:///srv/svn/repos/tess','/srv/www/htdocs/tessnew') ... Cheers RonThis worked on a build of 1.0.0 #php -r 'dl("svn.so"); var_dump(svn_export("file:///backup/subversion/svn_wiki/", "/tmp/wiki_test", false));' bool(true) .. and files are in /tmp/wiki_test Previous versions may not have worked with the file:// This is a sample of it now working. #php -r 'dl("svn.so"); var_dump(svn_export("/backup/subversion/svn_wiki/", "/tmp/wiki_test", false));' Warning: svn_export(): svn error(s) occured 155007 (Path is not a working copy directory) '/backup/subversion/svn_wiki' is not a working copy in Command line code on line 1 bool(false) #php -r 'dl("svn.so"); phpinfo();' | grep svn -i SVN revision => $Revision: 290435 $ svn svn support => enabled svn client version => 1.6.6 svn extension version => 0.6.0-dev Note that that is actually 1.0.0 you may want to update your client version to 1.6 - Not sure, but that might fix your issue.