[PECL-BUG] Bug #14749 [NEW]: running via Apache - Permission Denied

[email protected] ("czerwonka at arcticpenguin dot ca")
Newsgroups php.pear.webmaster
Message-ID <[email protected]>
From:             czerwonka at arcticpenguin dot ca
Operating system: Linux
Package version:  
PHP version:      5.2.3
Package:          Bug System
Bug Type:         Bug
Bug description:  running via Apache - Permission Denied

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.


-- 
Edit bug report at http://pecl.php.net/bugs/bug.php?id=14749&edit=1
--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.