You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Ben Gollmer <be...@jatosoft.com> on 2002/10/15 21:25:47 UTC

PHP + SWIG and SVN

Having happily converted all of my personal projects to Subversion, I'm now 
trying to integrate it into my business workflow. We have a web-based project 
management application written in PHP, and it integrates with CVS for bug 
tracking, task management, & so forth.

I'd like to achieve similar integration with Subversion, and the SWIG bindings 
seem to be the way to do it. Having never used SWIG before, I'm looking for 
some feedback from those who have. Would it be a huge task to get a PHP 
module running using SWIG? Are the SWIG->PHP bindings relatively stable? And 
finally, would anyone else be interested in the module if I get it working?

Thanks,
Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

RE: Re: PHP + SWIG and SVN

Posted by Martin Furter <mf...@rola.ch>.
On Tue, 19 May 2009, Laran Evans wrote:

> Any update on PHP bindings for Subversion? I'd love to see them. Would 
> anyone be willing to venture a guess as to how long it would take to 
> develop them?

I don't want to scare you away but it's a lot of work!

Run the following commandline in the root of the subversion source:

egrep '^svn_[a-zA-Z0-9_]* *\(' subversion/include/*.h |
sed 's/^[^:]*:svn_\([^(_]*\)[(_].*$/\1/' |
sort | uniq -c | sort

The output will be the number of functions followed by the module name 
containing them.
Here are the last few lines as of r37338:

      28 stream
      39 path
      75 io
      86 ra
      96 repos
     101 fs
     131 client
     160 wc

The sum of all functions is 1153, ignoring the functions ending with a 
digit it's still 903. (there may be some false positives but after a quick 
look at svn_wc.h i haven't seen any in there)

A lot of work if you do it manually.

Another option is using swig (I hope swig supports PHP). But then you 
write about 100k lines support code. Also a lot of work.

Probably the easiest way is using svncpp (http://rapidsvn.tigris.org/) but 
it wraps the client side functions only. svncpp seems to also support 
swig, maybe that makes it even more easy...

HTH
Martin

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2353629

RE: Re: PHP + SWIG and SVN

Posted by Laran Evans <la...@laranevans.com>.
Any update on PHP bindings for Subversion? I'd love to see them. Would anyone be willing to venture a guess as to how long it would take to develop them?

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2318410

Re: PHP + SWIG and SVN

Posted by Peter Davis <pe...@pdavis.cx>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 15 October 2002 14:25, Ben Gollmer wrote:
> would anyone else be interested in the module if I get it working?

Yes, definitely.  I was looking into building a web interface for my Subissue 
project (issue tracking in a Subversion database) and had kind of resolved 
that it would have to be done in Python... but PHP would be much nicer for 
me.

- -- 
Peter Davis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9rJbuhDAgUT1yirARArqqAJ0Y3qJxtNJVldL4hUX5FXt+wSwW1wCcDDVD
pdPxwsZ71dxRuLWkleDvlDI=
=Etik
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: PHP + SWIG and SVN

Posted by cm...@collab.net.
Ben Gollmer <be...@jatosoft.com> writes:

> I'd like to achieve similar integration with Subversion, and the
> SWIG bindings seem to be the way to do it. Having never used SWIG
> before, I'm looking for some feedback from those who have. Would it
> be a huge task to get a PHP module running using SWIG? Are the
> SWIG->PHP bindings relatively stable? And finally, would anyone else
> be interested in the module if I get it working?

I'm guessing that somewhere in the nieghborhood of, oh, 20 seconds has
been spent trying to get the PHP bindings up.  I can't speak for the
stability of SWIG's PHP support, but Subversion's PHP bindings aren't
really existant, as far as I know.  Would others be interested if you
started hacking away?  You betcha, buddy.  Bring it on.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: trying to compilew on RH7.2

Posted by David Summers <da...@summersoft.fay.ar.us>.
I've got RPMS for 7.2 and such if you follow the links for the downloads.

RedHat users: Don't beat yourself up trying to compile Subversion on 
RedHat (unless you are just wanting to learn it, of course)!  It's already 
been done!   

You can dowload RPMS already working on RedHat 7.X and RedHat 8.X.  You 
can use those to update the the latest versions.

Please let me know if you have any problems, suggestions, enhancements, 
etc. for them!

Hooray for the new (coming) Mandrake RPMs!  

I can create directory for Suse RPMs also.

   - David Summers


On Tue, 15 Oct 2002, Robert Koberg wrote:

> Hi,
> 
> I have been trying for a bit now to get this thing compiled on RedHat7.2. I have
> read the INSTALL doc and downloaded/updated everything it asks. The problem
> might be with autoconf - it says I need at least 2.5. I got that and installed
> it. The
> 
> Doing:
> # autoconf -V
> gives me 'autoconf (GNU Autoconf) 2.50
> 
> but then I go to ./autogen.sh and it does a buildcheck for autoconf version 2.50
> and it says (ok)
> 
> Then about 5 lines down in the output it chokes on:
> Creating svn_private_config.h.in...
> FATAL ERROR: Autoconf 2.50 or higher is required for this script
> 
> but it builds the configure file.
> 
> I go on to
> ./configure --enable-maintainer-mode --with-apr=/path/to/httpd-2.0/srclib/apr --
> with-apr-util=/path/to/httpd-2.0/srclib/apr-util
> 
> it ends with an error saying cannot find input file: svn_private_config.h.in
> 
> I have checked the faq and searched on google but did not see anything that
> helped me.
> 
> Can I just create this file manually? Is there an example? Any ideas on what
> could I be doind wrong?
> 
> thanks for any advice,
> -Rob
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
> 
> 

-- 
David Wayne Summers          "Linux: Because reboots are for upgrades!"
david@summersoft.fay.ar.us   PGP Key: http://summersoft.fay.ar.us/~david/pgp.txt
PGP Key fingerprint =  C0 E0 4F 50 DD A9 B6 2B  60 A1 31 7E D2 28 6D A8 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

trying to compilew on RH7.2

Posted by Robert Koberg <ro...@koberg.com>.
Hi,

I have been trying for a bit now to get this thing compiled on RedHat7.2. I have
read the INSTALL doc and downloaded/updated everything it asks. The problem
might be with autoconf - it says I need at least 2.5. I got that and installed
it. The

Doing:
# autoconf -V
gives me 'autoconf (GNU Autoconf) 2.50

but then I go to ./autogen.sh and it does a buildcheck for autoconf version 2.50
and it says (ok)

Then about 5 lines down in the output it chokes on:
Creating svn_private_config.h.in...
FATAL ERROR: Autoconf 2.50 or higher is required for this script

but it builds the configure file.

I go on to
./configure --enable-maintainer-mode --with-apr=/path/to/httpd-2.0/srclib/apr --
with-apr-util=/path/to/httpd-2.0/srclib/apr-util

it ends with an error saying cannot find input file: svn_private_config.h.in

I have checked the faq and searched on google but did not see anything that
helped me.

Can I just create this file manually? Is there an example? Any ideas on what
could I be doind wrong?

thanks for any advice,
-Rob



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org