note 107317 added to function.svn-commit

From: Date: Mon, 30 Jan 2012 14:01:57 +0000
Subject: note 107317 added to function.svn-commit
Groups: php.notes 
Request: Send a blank email to php-notes+get-185796@lists.php.net to get a copy of this message
How would you catch an authentication error when it is thrown by svn_commit if(!is_array(svn_commit('Adding new survey:'. $surveyId, array( "../public/filespool/".$dirNumber."/" .$surveyId."/" ) ) )){ // The message $message = "Failed to commit filespool in ".php_uname('n')." \n Filepath to commit: ../public/filespool/".$dirNumber."/" .$surveyId."/ \n SVN User: ".$svnUser; $message = wordwrap($message, 70); // Send mail('s.u@s.com', 'SVN Commit Failed', $message); $contents = "Publishing is complete but please notify IT department of survey id that you have just publish. Survey ID: ". $surveyId; } else{ $contents = "Publishing is complete"; } the error in error log PHP Warning: svn_commit(): svn error(s) occured\n170001 (Authorization failed) Commit failed (details follow):\n170001 (Authorization failed) Authentication error from server: Username not found\n in ... on line 648, referer: http://... ---- Server IP: 69.147.83.197 Probable Submitter: 62.49.167.2 ---- Manual Page -- http://www.php.net/manual/en/function.svn-commit.php Edit -- https://master.php.net/note/edit/107317 Del: integrated -- https://master.php.net/note/delete/107317/integrated Del: useless -- https://master.php.net/note/delete/107317/useless Del: bad code -- https://master.php.net/note/delete/107317/bad+code Del: spam -- https://master.php.net/note/delete/107317/spam Del: non-english -- https://master.php.net/note/delete/107317/non-english Del: in docs -- https://master.php.net/note/delete/107317/in+docs Del: other reasons-- https://master.php.net/note/delete/107317 Reject -- https://master.php.net/note/reject/107317 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#185796) next »