|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-06-13 05:10 UTC] ciprian dot amariei at gmail dot com
Description:
------------
svn_ls does not return anything and generates an error for some servers.
Reproduce code:
---------------
$ar = svn_ls("http://drf.googlecode.com/svn/trunk/",-1);
Expected result:
----------------
array with ls content
Actual result:
--------------
apache2: /build/buildd/subversion-1.4.3dfsg1/subversion/libsvn_subr/path.c:343: svn_path_remove_component: Assertion `is_canonical(path->data, path->len)' failed.
[Wed Jun 13 04:57:56 2007] [notice] child pid 7410 exit signal Aborted (6)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 08:00:01 2025 UTC |
done some more research on this and it turns out to be a stupid problem that comes from subversion libraries: from path.c: #ifndef NDEBUG static svn_boolean_t is_canonical (const char *path, apr_size_t len) { return (! SVN_PATH_IS_PLATFORM_EMPTY (path, len) && (len <= 1 || path[len-1] != '/')); } #endif The problem was the trailing slash. ;) Now it works just fine. reference: http://svn.haxx.se/users/archive-2005-09/0602.shtml