// FILE_BINARY is available from 5.2.7
if (PHP_VERSION_ID < 50207) {
define('FILE_BINARY', 0);
- }
+ }
}
// (unicode) is available from 6.0.0
}
save_or_mail_results();
-
+
if (getenv('REPORT_EXIT_STATUS') == 1 and $sum_results['FAILED']) {
exit(1);
}
fclose($fs);
return 1;
-}
+}
//
if (1 < $DETAILED) echo "
FILE $filename {{{
$text
-}}}
+}}}
";
}
// Write an error in a format recognizable to Emacs or MSVC.
//
-function error_report($testname, $logname, $tested)
+function error_report($testname, $logname, $tested)
{
$testname = realpath($testname);
$logname = realpath($logname);
fwrite($pipes[0], (binary) $stdin);
}
fclose($pipes[0]);
-
+
$timeout = $leak_check ? 300 : (isset($env['TEST_TIMEOUT']) ? $env['TEST_TIMEOUT'] : 60);
while (true) {
function binary_section($section)
{
- return PHP_MAJOR_VERSION < 6 ||
+ return PHP_MAJOR_VERSION < 6 ||
(
$section == 'FILE' ||
$section == 'FILEEOF' ||
$startOffset = $end + 2;
}
$wanted_re = $temp;
-
+
$wanted_re = str_replace(
array(b'%binary_string_optional%'),
version_compare(PHP_VERSION, '6.0.0-dev') == -1 ? b'string' : b'binary string',
if ($show_html) {
$summary .= "<pre>\n";
}
-
+
if ($show_ext_summary) {
$summary .= '
=====================================================================
$mem = " ";
}
- fwrite($html_file,
+ fwrite($html_file,
"<tr>" .
"<td>$result</td>" .
"<td>$tested</td>" .
"<td>$extra</td>" .
- "<td>$diff</td>" .
+ "<td>$diff</td>" .
"<td>$mem</td>" .
"</tr>\n");
}