Re: Extending subversion module

From: Date: Thu, 01 Dec 2005 09:06:32 +0000
Subject: Re: Extending subversion module
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-3306@lists.php.net to get a copy of this message
I have started writing the binding for some svn_repos_* and svn_fs_* functions, but I stumbled upon an error and I don't know what's wrong. I tryed and implement svn_repos_fs_begin_txn_for_commit, but I get a segmentation fault during the call to the "real" svn function (there are a couple of zend_printf before and after it). I'm attaching the patch file and the simple php file I use to test the module, which just open a repository, crete a transaction and commits it, without doing any change: <?php $repository = svn_repos_open("/path/to/repository"); $fs = svn_repos_fs($repository); $revision = svn_fs_youngest_rev($fs); $transaction = svn_repos_fs_begin_txn_for_commit($repository, $revision, "user", "this is the log message"); $transactionRoot = svn_fs_txn_root($transaction); // repository changes $newRevision = svn_repos_fs_commit_txn($transaction); ?> Anyone has a hint about the possible problem (and maybe about how to solve it too :-)) ? Regards
    Luca


« previous php.pecl.dev (#3306) next »