Suite à mon précedent message, resté sans avis. http://www.phpfrance.com/forums/voir_reponse-201501.php
Je suis un peu embeté car je n'ai toujours aucun affichage des erreurs. Donc j'ai du mal a comprendre comment débuggué.
sur xampp (php5,apache2), j'ai fait l'installation de VersionControl.php.ini
error_reporting = E_ALL
Code : Tout sélectionner
pear install XML_Parser
pear install VersionControl_SVN-alphaVoici le code utiliséerror.log
[Wed Jul 25 18:29:40 2007] [notice] Child 4272: Starting thread to listen on port 80.
access.log
127.0.0.1 - - [25/Jul/2007:18:30:00 +0200] "GET /monSVN/index.php HTTP/1.1" 200 2
<?php
require_once 'VersionControl/SVN.php';
// Setup error handling -- always a good idea!
$svnstack = &PEAR_ErrorStack::singleton('VersionControl_SVN');
// Set up runtime options.
$options = array('fetchmode' => VERSIONCONTROL_SVN_FETCHMODE_ARRAY);
// Request list class from factory
$svn = VersionControl_SVN::factory('list', $options);
// Define any switches and aguments we may need
$switches = array('username' => 'monlogin', 'password' => 'monpassword');
$args = array('svn://localhost/monprojet/trunk');
// Run command
if ($output = $svn->run($args, $switches)) {
print_r($output);
} else {
if (count($errs = $svnstack->getErrors())) {
foreach ($errs as $err) {
echo '<br />'.$err['message']."<br />\n";
echo "Command used: " . $err['params']['cmd'];
}
}
}
?>
Merci de votre aide