php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60207 SVN Status with show updates not working
Submitted: 2011-11-03 12:13 UTC Modified: 2011-11-03 12:18 UTC
From: a dot vi at laposte dot net Assigned:
Status: Closed Package: svn (PECL)
PHP Version: 5.3.8 OS: Ubuntu Server
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: a dot vi at laposte dot net
New email:
PHP Version: OS:

 

 [2011-11-03 12:13 UTC] a dot vi at laposte dot net
Description:
------------
Hi,

I'm trying to use svn_status. It seems to fail when using SVN_SHOW_UPDATES. The 
function returns "false".

Here's my code:

$status = svn_status(realpath('/tank/www/prod'), SVN_SHOW_UPDATES); //returns 
false

When I issued:
#root@ns38:/# svn status -u /tank/www/prod/
I receive 32 lines of outdated files.

More information:
Subversion command-line client, version 1.6.12.
PECL: svn-1.0.1
Libsvn-dev: Version: 1.6.12dfsg-4ubuntu2.1

Thks

Test script:
---------------
$status = svn_status(realpath('/tank/restovisio/prod'));
if (is_array($status) && count($status) > 0) {
        print_r($status);
}
else {
        echo 'FAILED';
        var_dump($status);
}

// OUTPUT:
// bool(false)

Expected result:
----------------
/tank/www/prod/public/svn.php
/tank/www/prod/public/index.php
...
/tank/www/prod

Actual result:
--------------
bool(false)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-03 12:18 UTC] a dot vi at laposte dot net
-Status: Open +Status: Closed
 [2011-11-03 12:18 UTC] a dot vi at laposte dot net
I forgot the authentication, it's working now. Sorry !

svn_auth_set_parameter( SVN_AUTH_PARAM_DEFAULT_USERNAME, SVN_USER_NAME );
svn_auth_set_parameter( SVN_AUTH_PARAM_DEFAULT_PASSWORD, SVN_PASSWORD );
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 22:01:28 2024 UTC