Quintin Par
Quintin Par

Reputation: 16252

PHP: svn_update and shell_exec("svn up ".DIR)

Whats the difference between a svn_update and doing a echo shell_exec("svn up ".DIR);

Upvotes: 1

Views: 634

Answers (2)

Jerome WAGNER
Jerome WAGNER

Reputation: 22412

I would expect the 2 operations to be the same as the svn php module tries to be a "native" svn client.

There could be differences in the versions of the 2 clients (php client versus command line client).

You may want to check if the svn user used for both commands is the same. In the php client you must use svn_auth_set_parameter to setup the credentials of the svn user

I hope this will help you,

Jerome Wagner

Upvotes: 0

sevenseacat
sevenseacat

Reputation: 25029

My guess is the big block of text that says:

This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.

Upvotes: 1

Related Questions