Problem installing SVN PHP extension via PEAR in Mac OS

Problem installing SVN PHP extension via PEAR in Mac OS

am 30.03.2008 07:18:37 von Victor

Hi,

1. I'm a PHP newbie looking for some help with the SVN PHP extension.

I installed the SVN extension in Mac OS 10.5 (Leopard) using the PEAR
command line.

2. Whenever I ran the following code:
#phpinfo();
print_r( svn_ls('http://www.example.com/svnroot/') );
?>

The browser says:
Fatal error: Call to undefined function svn_ls() in /Users/limkl/Sites/
test.php on line 3

When I ran phpinfo(), the SVN extension does not show up under
Additional Modules.

3. I know this is a sign that the installed extension not taking
effect.

Yes, I did remember to restart the built-in Apache using 'sudo
apachectl restart'.

Also, I have doublechecked /etc/php.ini that dynamic loading (DL) is
On and extension=svn.so is added.

4. Question: Does this mean I have to recompile PHP?

Thanks,
Victor

Re: Problem installing SVN PHP extension via PEAR in Mac OS

am 31.03.2008 11:06:59 von David Gillen

On Sun, 30 Mar 2008 Victor wrote:
> Hi,
>
> 1. I'm a PHP newbie looking for some help with the SVN PHP extension.
>
> I installed the SVN extension in Mac OS 10.5 (Leopard) using the PEAR
> command line.
>
> 2. Whenever I ran the following code:
> >#phpinfo();
> print_r( svn_ls('http://www.example.com/svnroot/') );
> ?>
>
Add the line
require_once 'VersionControl/SVN.php';
At the start of your script, otherwise the functionality won't be available to
you.
See http://pear.php.net/manual/en/package.tools.versioncontrol-s vn.php for
further examples of it's use.

D.