[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Call svn executable from php on windows hangs forever

From: Gavin Lambert <gavinl_at_compacsort.com>
Date: 2006-07-18 02:44:07 CEST

Quoth Kamal <mailto:kalotus@gmail.com>:
> I'm trying to call the svn.exe executable from a php script
> (I know there is php_svn and other ways but now I need to
> test this). For example a simple
>
> <?php
> chdir('c:\\local_working_copy');
> $output = shell_exec('svn help');
>>
>
> works as expected printing the help message. If execute "svn
> ls" instead of "svn help" it just waits forever until I kill
> the process manually. Obviously the same command from the
> command line works as expected, I use svn+ssh and have
> configured the SVN_SSH env var with password too (just to be
> sure it's not an authentication problem). My svn client is
> 1.3.2 (I installed the last one I think), ssh client is
> plink.exe 0.58, OS is windows 2k pro sp4 patched and
> webserver Apache/2.2.2 + PHP/5.1.4 (xampp 1.5.3a).
>
> My sensation is that if called from command line it's not
> interactive, if called from webserver it expects something else
> forever...

Is your webserver running as a different user? If so, it's probably
missing the appropriate credentials, so it's prompting you for them.

You should be using the --non-interactive options when you don't want it
to be interactive, incidentally.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 18 02:45:52 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.