From: Operating system: centos PHP version: 5.3.9 Package: Testing related Bug Type: Feature/Change Request Bug description:authentication problem
Description: ------------ --- >From manual page: http://www.php.net/function.svn-commit --- 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('[email protected]', '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 if i provide invalid user 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://... -- Edit bug report at https://bugs.php.net/bug.php?id=60934&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60934&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60934&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60934&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60934&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60934&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60934&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60934&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60934&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60934&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60934&r=support Expected behavior: https://bugs.php.net/fix.php?id=60934&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60934&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60934&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60934&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60934&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60934&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60934&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60934&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60934&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60934&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60934&r=mysqlcfg
