php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59174 svn_info does not support url
Submitted: 2010-04-22 10:36 UTC Modified: 2011-05-31 22:42 UTC
From: frederic dot hardy at mageekbox dot net Assigned:
Status: No Feedback Package: svn (PECL)
PHP Version: 5.3.2 OS: FreeBSD
Private report: No CVE-ID: None
 [2010-04-22 10:36 UTC] frederic dot hardy at mageekbox dot net
Description:
------------
svn_info() seems does not support URL format to check infos about a repository.

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

var_dump(svn_info('http://svn.php.net/repository/php/php-src/trunk'));

?>

Expected result:
----------------
array(
  'Path' => 'trunk',
  'URL' => 'http://svn.php.net/repository/php/php-src/trunk',
  'Repository Root' => 'http://svn.php.net/repository',
  'Repository UUID' => 'c90b9560-bf6c-de11-be94-00142212c4b1',
  'Revision' => 298319,
  'Node Kind' => 'directory',
  'Last Changed Author' => 'felipe',
  'Last Changed Rev' => 298319,
  'Last Changed Date' => '2010-04-22 15:28:53 +0200 (Thu, 22 Apr 2010)'
)

Actual result:
--------------
Nothing.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-23 19:43 UTC] alan at akbkhome dot com
can you try the version in subversion
svn.php.net/pecl/svn/trunk

seems to work fine for me.


php -r 
'dl("svn.so");print_r(svn_info("http://svn.php.net/repositor
y/pecl/svn/trunk"));'
Array
(
    [0] => Array
        (
            [path] => trunk
            [url] => 
http://svn.php.net/repository/pecl/svn/trunk
            [revision] => 298403
            [kind] => 2
            [repos] => http://svn.php.net/repository
            [last_changed_rev] => 298152
            [last_changed_date] => 2010-04-
19T02:38:19.394554Z
            [last_changed_author] => alan_k
        )
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 10:01:29 2024 UTC