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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 17:01:34 2025 UTC