php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58366 running via Apache - Permission Denied
Submitted: 2008-10-05 23:37 UTC Modified: 2008-10-07 23:29 UTC
From: czerwonka at arcticpenguin dot ca Assigned:
Status: Closed Package: svn (PECL)
PHP Version: 5.2.3 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
27 + 1 = ?
Subscribe to this entry?

 
 [2008-10-05 23:37 UTC] czerwonka at arcticpenguin dot ca
Description:
------------
I've got a PHP script being executed by Apache (www user) :

<?php
echo 'SVN Client is ' . svn_client_version();
svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_USERNAME, "aczerwon");
?>

I'm getting an error on the second line (first on reports 1.4.0 correctly) saying:

svn_auth_set_parameter(): svn error(s) occured\n13 (Permission denied) Can't open file '/root/.subversion/servers': Permission denied

Alan Knowles asked me to log this bug.  

reference / and looking at svn's source code.
http://svn.haxx.se/dev/archive-2005-09/1094.shtml


According to Alan, you need to add svn_config_ensure("dir");
err = svn_config_ensure(opt_state.config_dir, pool);





Reproduce code:
---------------
Nothing special.  Simply install the svn extension and have Apache run a script and you get this error.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-07 19:50 UTC] scottmac@php.net
Function added but it doesn't do what you expect.

All this function does is ensure that the specified path looks like a subversion file.

I think what you want is

svn_auth_set_parameter(SVN_AUTH_PARAM_CONFIG_DIR, '/www/site/.svn');
 [2008-10-07 23:29 UTC] czerwonka at arcticpenguin dot ca
If that's the case, can we then add that function?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 20:01:45 2024 UTC