Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
212
/
root
/
opt
/
php-7.3
/
share
/
test
/
HTTP_WebDAV_Server
/
tests
/
//proc/212/root/opt/php-7.3/share/test/HTTP_WebDAV_Server/tests/split_log.php
<?php $in = fopen("debug.log","r"); $out = false; $last=0; $group=1; while(!feof($in)) { $line = fgets($in); if(preg_match("/ Running test ([[:digit:]]+): ([^[:space:]]+)/", $line, $matches)) { if($out) fclose($out); $nr = $matches[1]; if($nr<$last) $group++; $last=$nr; $out = fopen("{$group}_{$nr}_$matches[2].log","w"); } if($out) fputs($out, $line); } fclose($in); fclose($out); ?>