我试图在两个版本中获得相同文件的svn差异。
我提到了http://php.net/manual/en/function.svn-diff.php
<?php
list($diff, $errors) = svn_diff(
'http://www.example.com/svnroot/trunk/foo', SVN_REVISION_HEAD,
'http://www.example.com/svnroot/branches/dev/foo', SVN_REVISION_HEAD
);
if (!$diff) exit;
$contents = '';
while (!feof($diff)) {
$contents .= fread($diff, 8192);
}
fclose($diff);
fclose($errors);
var_dump($contents);
?>
但我总是低于错误,因为&#34;连接被重置&#34;当我跑这个。
错误日志如下所示,
[Wed Jun 15 17:16:53.495806 2016] [core:notice] [pid 1343] AH00051: child pid 1437 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jun 15 17:16:53.496043 2016] [core:notice] [pid 1343] AH00051: child pid 1438 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jun 15 17:16:53.496131 2016] [core:notice] [pid 1343] AH00051: child pid 1439 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jun 15 17:16:53.496166 2016] [core:notice] [pid 1343] AH00051: child pid 1440 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jun 15 17:16:53.496198 2016] [core:notice] [pid 1343] AH00051: child pid 1441 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jun 15 17:16:54.498196 2016] [core:notice] [pid 1343] AH00051: child pid 2805 exit signal Segmentation fault (11), possible coredump in /etc/apache2