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('s...@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 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