本文整理汇总了PHP中error_report函数的典型用法代码示例。如果您正苦于以下问题:PHP error_report函数的具体用法?PHP error_report怎么用?PHP error_report使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了error_report函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: generate_from_id
function generate_from_id($id)
{
$sql = "select * from {$this->type} where id = {$id}";
//echo $sql;
if (!($result = $this->db->query($sql))) {
error_report(SQL_ERROR, 'generate', __LINE__, __FILE__, $sql);
}
$row = $result->fetchRow(DB_FETCHMODE_ASSOC);
return $this->generate_from_row($row);
}
示例2: error_fatal
function error_fatal($type, $message, $file, $line = 0)
{
switch ($type) {
case E_USER_ERROR:
$type_str = 'Error';
break;
case E_WARNING:
case E_USER_WARNING:
$type_str = 'Warning';
break;
case E_NOTICE:
case E_USER_NOTICE:
$type_str = 'Notice';
break;
case QUICKSILVER_QUERY_ERROR:
$type_str = 'Query Error';
break;
default:
$type_str = 'Unknown Error';
}
if (strstr($file, 'eval()')) {
$split = preg_split('/[\\(\\)]/', $file);
$file = $split[0];
$line = $split[1];
$message .= ' (in evaluated code)';
}
$details = null;
if ($type != QUICKSILVER_QUERY_ERROR) {
if (strpos($message, 'mysql_fetch_array(): supplied argument') === false) {
$lines = null;
$details2 = null;
if (function_exists('debug_backtrace')) {
$backtrace = debug_backtrace();
if (strpos($message, 'Template not found') !== false) {
$file = $backtrace[2]['file'];
$line = $backtrace[2]['line'];
}
}
if (file_exists($file)) {
$lines = file($file);
}
if ($lines) {
$details2 = "\n\t\t\t\t<span class='header'>Code:</span><br />\n\t\t\t\t<span class='code'>" . error_getlines($lines, $line) . '</span>';
}
} else {
$details2 = "\n\t\t\t<span class='header'>MySQL Said:</span><br />" . mysql_error() . '<br />';
}
$details .= "\n\t\t<span class='header'>{$type_str} [{$type}]:</span><br />\n\t\tThe error was reported on line <b>{$line}</b> of <b>{$file}</b><br /><br />{$details2}";
} else {
$details .= "\n\t\t<span class='header'>{$type_str} [{$line}]:</span><br />\n\t\tThis type of error is reported by MySQL.\n\t\t<br /><br /><span class='header'>Query:</span><br />{$file}<br />";
}
$checkbug = error_report($type, $message, $file, $line);
$temp_querystring = str_replace("&", "&", $_SERVER['QUERY_STRING']);
return "\n\t<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n\t<html>\n\t<head>\n\t<title>Quicksilver Forums Error</title>\n\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n\n\t<style type='text/css'>\n\tbody {font-size:12px; font-family: verdana, arial, helvetica, sans-serif; color:#000000; background-color:#ffffff}\n\thr {height:1px}\n\t.large {font-weight:bold; font-size:18px; color:#660000; background-color:transparent}\n\t.header {font-weight:bold; font-size:12px; color:#660000; background-color:transparent}\n\t.error {font-weight:bold; font-size:12px; color:#ff0000; background-color:transparent}\n\t.small {font-weight:bold; font-size:10px; color:#000000; background-color:transparent}\n\t.code {font-weight:normal; font-size:12px; font-family:courier new, fixedsys, serif}\n\t</style>\n\t</head>\n\n\t<body>\n\t<span class='large'>Quicksilver Forums has exited with an error</span><br /><br />\n\n\t<hr>\n\t<span class='error'>{$message}</span>\n\t<hr><br />\n\n\t{$details}\n\n\t<br /><hr><br />\n\t<a href='http://developer.berlios.de/bugs/?group_id=5008' class='small'>Check status of problem (recommended)</a><br />\n\t<a href='{$_SERVER['PHP_SELF']}?{$temp_querystring}&debug=1' class='small'>View debug information (advanced)</a><br />\n\t<a href='{$_SERVER['PHP_SELF']}' class='small'>Return to the board</a>\n\t</body>\n\t</html>";
}
示例3: autoloader
function autoloader($class)
{
$name = explode('_', $class);
try {
@(include_once './models/' . strtolower($name[0]) . '.php');
@(include_once './controllers/' . strtolower($name[0]) . '.php');
@(include_once './views/' . strtolower($name[0]) . '.php');
} catch (ErrorException $e) {
error_report($e);
die;
}
}
示例4: http_get_simple
function http_get_simple($url)
{
$options = array('http' => array('header' => '', 'method' => 'GET'));
$context = stream_context_create($options);
$stream = fopen($url, 'r', false, $context);
if ($stream === FALSE) {
error_report("Error opening GET request to URL '{$url}'");
return FALSE;
}
$meta = stream_get_meta_data($stream);
$result = array('headers' => $meta['wrapper_data'], 'meta' => $meta, 'content' => stream_get_contents($stream));
return $result;
}
示例5: auth_activate_by_cookie
function auth_activate_by_cookie($cookie)
{
$result = db_get_auth_request_by_cookie($cookie);
if ($result === FALSE) {
error_report("Error: No such cookie is known.");
return FALSE;
}
$success = db_mark_user_as_authenicated($result['username'], $result['cookie'], $result['id']);
if ($success === FALSE) {
error_report("Error: Could not mark user as 'authenticated'. Aborting.");
return FALSE;
}
return TRUE;
}
示例6: generate_from_content_id
function generate_from_content_id($content_id)
{
global $db, $config_vars;
unset($this->meta_data);
$sql = 'select * from ' . $config_vars['table_prefix'] . "content_meta_data where content_id = {$content_id}";
if (!($result = $db->sql_query($sql))) {
error_report(SQL_ERROR, 'generate', __LINE__, __FILE__, $sql);
}
while ($row = $db->sql_fetchrow($result)) {
$this->meta_data[$row['id']] = $row;
}
$this->content_id = $content_id;
return OP_SUCCESSFUL;
}
示例7: bgg_login
function bgg_login()
{
global $config;
if ($config['bgg']['cookie'] !== FALSE) {
error_report("Already logged in! Not logging in again.");
return TRUE;
}
$url = "https://" . $config['bgg']['domain'] . "/login";
$params = array('lasturl' => '/', 'username' => $config['bgg']['username'], 'password' => $config['bgg']['password']);
$result = http_post($url, $params);
if ($result === FALSE) {
return FALSE;
}
$cookies = bgg_get_cookies_from_headers($result['headers']);
if (!isset($cookies['bggusername']) || !isset($cookies['bggpassword']) || !isset($cookies['SessionID'])) {
error_log("Missing cookies after BGG logon. Logon error!");
return FALSE;
}
$bgg_cookies = sprintf("bggusername=%s; bggpassword=%s; SessionID=%s", $cookies['bggusername'], $cookies['bggpassword'], $cookies['SessionID']);
$config['bgg']['cookie'] = $bgg_cookies;
return TRUE;
}
示例8: get_content_ordered_by
function get_content_ordered_by($by, $filter = true, $order = 'DESC', $limit_start = 0, $limit_end = -1)
{
// returns a assoc array containing 'object' = content objects and 'length' = how long they have been viewed ordered by the length they have been viewed.
global $db, $config_vars;
if ($filter) {
$filter = 'and (view_table.end!=0)';
}
$sql = 'SELECT SUM(UNIX_TIMESTAMP(view_table.end) - UNIX_TIMESTAMP(view_table.start)) as length,COUNT(*) as amount,content.* FROM ' . $config_vars['table_prefix'] . 'views AS view_table, ' . $config_vars['table_prefix'] . 'content AS content
WHERE (view_table.content_id=content.id) ' . $filter . '
GROUP BY view_table.content_id
ORDER BY ' . $by . " {$order} \n\t\tLIMIT {$limit_start},{$limit_end}";
if (!($result = $db->sql_query($sql))) {
error_report(SQL_ERROR, 'get_content_ordered_by', __LINE__, __FILE__, $sql);
}
while ($row = $db->sql_fetchrow($result)) {
$a['object'] = get_content_from_row($row);
$a['length'] = $row['length'];
$a['amount'] = $row['amount'];
$objarray[] = $a;
}
return $objarray;
}
示例9: run_test
//.........这里部分代码省略.........
*/
if (preg_match("/^{$wanted_re}\$/s", $output)) {
$passed = true;
if (!$cfg['keep']['php']) {
@unlink($test_file);
}
if (!$leaked && !$failed_headers) {
if (isset($section_text['XFAIL'])) {
$warn = true;
$info = " (warn: XFAIL section but test passes)";
} else {
show_result("PASS", $tested, $tested_file, '', $temp_filenames);
junit_mark_test_as('PASS', $shortname, $tested);
return 'PASSED';
}
}
}
} else {
$wanted = trim($section_text['EXPECT']);
$wanted = preg_replace('/\\r\\n/', "\n", $wanted);
show_file_block('exp', $wanted);
// compare and leave on success
if (!strcmp($output, $wanted)) {
$passed = true;
if (!$cfg['keep']['php']) {
@unlink($test_file);
}
if (!$leaked && !$failed_headers) {
if (isset($section_text['XFAIL'])) {
$warn = true;
$info = " (warn: XFAIL section but test passes)";
} else {
show_result("PASS", $tested, $tested_file, '', $temp_filenames);
junit_mark_test_as('PASS', $shortname, $tested);
return 'PASSED';
}
}
}
$wanted_re = null;
}
// Test failed so we need to report details.
if ($failed_headers) {
$passed = false;
$wanted = $wanted_headers . "\n--HEADERS--\n" . $wanted;
$output = $output_headers . "\n--HEADERS--\n" . $output;
if (isset($wanted_re)) {
$wanted_re = preg_quote($wanted_headers . "\n--HEADERS--\n", '/') . $wanted_re;
}
}
if ($leaked) {
$restype[] = 'LEAK';
}
if ($warn) {
$restype[] = 'WARN';
}
if (!$passed) {
if (isset($section_text['XFAIL'])) {
$restype[] = 'XFAIL';
$info = ' XFAIL REASON: ' . rtrim($section_text['XFAIL']);
} else {
$restype[] = 'FAIL';
}
}
if (!$passed) {
// write .exp
if (strpos($log_format, 'E') !== false && file_put_contents($exp_filename, $wanted, FILE_BINARY) === false) {
error("Cannot create expected test output - {$exp_filename}");
}
// write .out
if (strpos($log_format, 'O') !== false && file_put_contents($output_filename, $output, FILE_BINARY) === false) {
error("Cannot create test output - {$output_filename}");
}
// write .diff
$diff = generate_diff($wanted, $wanted_re, $output);
if (is_array($IN_REDIRECT)) {
$diff = "# original source file: {$shortname}\n" . $diff;
}
show_file_block('diff', $diff);
if (strpos($log_format, 'D') !== false && file_put_contents($diff_filename, $diff, FILE_BINARY) === false) {
error("Cannot create test diff - {$diff_filename}");
}
// write .sh
if (strpos($log_format, 'S') !== false && file_put_contents($sh_filename, "#!/bin/sh\n\n{$cmd}\n", FILE_BINARY) === false) {
error("Cannot create test shell script - {$sh_filename}");
}
chmod($sh_filename, 0755);
// write .log
if (strpos($log_format, 'L') !== false && file_put_contents($log_filename, "\n---- EXPECTED OUTPUT\n{$wanted}\n---- ACTUAL OUTPUT\n{$output}\n---- FAILED\n", FILE_BINARY) === false) {
error("Cannot create test log - {$log_filename}");
error_report($file, $log_filename, $tested);
}
}
show_result(implode('&', $restype), $tested, $tested_file, $info, $temp_filenames);
foreach ($restype as $type) {
$PHP_FAILED_TESTS[$type . 'ED'][] = array('name' => $file, 'test_name' => (is_array($IN_REDIRECT) ? $IN_REDIRECT['via'] : '') . $tested . " [{$tested_file}]", 'output' => $output_filename, 'diff' => $diff_filename, 'info' => $info);
}
$diff = empty($diff) ? '' : preg_replace('/\\e/', '<esc>', $diff);
junit_mark_test_as($restype, str_replace($cwd . '/', '', $tested_file), $tested, null, $info, $diff);
return $restype[0] . 'ED';
}
示例10: run_test
//.........这里部分代码省略.........
$out = system_with_timeout($cmd);
if (!empty($section_text['ENV'])) {
foreach (explode("\n", $section_text['ENV']) as $env) {
$env = explode('=', $env);
putenv($env[0] . '=');
}
}
@unlink($tmp_post);
// Does the output match what is expected?
$output = trim($out);
$output = preg_replace('/\\r\\n/', "\n", $output);
/* when using CGI, strip the headers from the output */
if (isset($old_php) && ($pos = strpos($output, "\n\n")) !== FALSE) {
$output = substr($output, $pos + 2);
}
if (isset($section_text['EXPECTF']) || isset($section_text['EXPECTREGEX'])) {
if (isset($section_text['EXPECTF'])) {
$wanted = trim($section_text['EXPECTF']);
} else {
$wanted = trim($section_text['EXPECTREGEX']);
}
$wanted_re = preg_replace('/\\r\\n/', "\n", $wanted);
if (isset($section_text['EXPECTF'])) {
$wanted_re = preg_quote($wanted_re, '/');
// Stick to basics
$wanted_re = str_replace("%e", '\\' . DIRECTORY_SEPARATOR, $wanted_re);
$wanted_re = str_replace("%s", ".+?", $wanted_re);
//not greedy
$wanted_re = str_replace("%i", "[+\\-]?[0-9]+", $wanted_re);
$wanted_re = str_replace("%d", "[0-9]+", $wanted_re);
$wanted_re = str_replace("%x", "[0-9a-fA-F]+", $wanted_re);
$wanted_re = str_replace("%f", "[+\\-]?\\.?[0-9]+\\.?[0-9]*(E-?[0-9]+)?", $wanted_re);
$wanted_re = str_replace("%c", ".", $wanted_re);
// %f allows two points "-.0.0" but that is the best *simple* expression
}
/* DEBUG YOUR REGEX HERE
var_dump($wanted_re);
print(str_repeat('=', 80) . "\n");
var_dump($output);
*/
if (preg_match("/^{$wanted_re}\$/s", $output)) {
@unlink($tmp_file);
echo "PASS {$tested}\n";
if (isset($old_php)) {
$php = $old_php;
}
return 'PASSED';
}
} else {
$wanted = trim($section_text['EXPECT']);
$wanted = preg_replace('/\\r\\n/', "\n", $wanted);
// compare and leave on success
$ok = 0 == strcmp($output, $wanted);
if ($ok) {
@unlink($tmp_file);
echo "PASS {$tested}\n";
if (isset($old_php)) {
$php = $old_php;
}
return 'PASSED';
}
$wanted_re = NULL;
}
// Test failed so we need to report details.
if ($warn) {
echo "WARN {$tested}{$info}\n";
} else {
echo "FAIL {$tested}{$info}\n";
}
$PHP_FAILED_TESTS['FAILED'][] = array('name' => $file, 'test_name' => (is_array($IN_REDIRECT) ? $IN_REDIRECT['via'] : '') . $tested, 'output' => $output_filename, 'diff' => $diff_filename, 'info' => $info);
// write .exp
if (strpos($log_format, 'E') !== FALSE) {
$log = fopen($exp_filename, 'w') or error("Cannot create test log - {$exp_filename}");
fwrite($log, $wanted);
fclose($log);
}
// write .out
if (strpos($log_format, 'O') !== FALSE) {
$log = fopen($output_filename, 'w') or error("Cannot create test log - {$output_filename}");
fwrite($log, $output);
fclose($log);
}
// write .diff
if (strpos($log_format, 'D') !== FALSE) {
$log = fopen($diff_filename, 'w') or error("Cannot create test log - {$diff_filename}");
fwrite($log, generate_diff($wanted, $wanted_re, $output));
fclose($log);
}
// write .log
if (strpos($log_format, 'L') !== FALSE) {
$log = fopen($log_filename, 'w') or error("Cannot create test log - {$log_filename}");
fwrite($log, "\n---- EXPECTED OUTPUT\n{$wanted}\n---- ACTUAL OUTPUT\n{$output}\n---- FAILED\n");
fclose($log);
error_report($file, $log_filename, $tested);
}
if (isset($old_php)) {
$php = $old_php;
}
return $warn ? 'WARNED' : 'FAILED';
}
示例11: serverInterface_error_report
function serverInterface_error_report($a)
{
if (G()->SET['error_report']['javascript']->v) {
$a['error source'] = 'js';
error_report($a);
}
}
示例12: calc_child_comments_amount
function calc_child_comments_amount()
{
global $db, $config_vars;
//get the comments from cat
$sql = 'SELECT count(cat_comments.id) FROM ' . $config_vars['table_prefix'] . 'cat_comments AS cat_comments WHERE cat_comments.owner_id = ' . $this->id;
if (!($result = $db->sql_query($sql))) {
$error = new phreak_error(E_WARNING, SQL_ERROR, __LINE__, __FILE__, 'calc_child_comments_amoount', $this->id, 0, 0, $sql);
$error->commit();
error_report(SQL_ERROR, 'commit', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$amount = $row[0];
//get the comments from content
$sql = 'SELECT count(content_comments.id)
FROM ' . $config_vars['table_prefix'] . 'content_comments AS content_comments, ' . $config_vars['table_prefix'] . 'content_in_cat AS content_in_cat
WHERE (content_in_cat.cat_id = ' . $this->id . ') AND (content_in_cat.content_id = content_comments.owner_id)';
if (!($result = $db->sql_query($sql))) {
error_report(SQL_ERROR, 'commit', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$amount += $row[0];
$child_cats = get_cats_of_cat($this->id);
for ($i = 0; $i < sizeof($child_cats); $i++) {
if ($child_cats[$i]->id != $config_vars['root_categorie']) {
$amount += $child_cats[$i]->calc_child_comments_amount();
}
}
return $amount;
}
示例13: error_report
$entry->commit();
$HTTP_GET_VARS['sel_group_id'] = $entry->id;
}
if (isset($HTTP_POST_VARS['change'])) {
// make sure at first var is set
if ($HTTP_POST_VARS[$entry->processing_vars[0]] == '') {
error_report(INFORMATION, 'enter_name', __LINE__, __FILE__);
}
$entry->generate_from_id($HTTP_GET_VARS['sel_group_id']);
$entry->set_vars($HTTP_POST_VARS);
$entry->commit();
}
// get all usergroups
$sql = "SELECT * from " . $config_vars['table_prefix'] . "{$_SESSION[type]}s";
if (!($result = $db->sql_query($sql))) {
error_report(AUTH_ERROR, 'get_groups', __LINE__, __FILE__, $sql);
}
while ($row = $db->sql_fetchrow($result)) {
$groups[] = $row;
}
// get data of selected group
foreach ($groups as $value) {
if ($value['id'] == $HTTP_GET_VARS['sel_group_id']) {
$sel_group = $value;
break;
}
}
$smarty->assign('processing_vars', $entry->processing_vars);
$smarty->assign('groups', $groups);
$smarty->assign('sel_group_id', $HTTP_GET_VARS['sel_group_id']);
$smarty->assign('sel_group', $sel_group);
示例14: db_mark_user_as_authenicated
function db_mark_user_as_authenicated($bggusername, $cookie, $auth_req_id)
{
global $dbh;
$id = FALSE;
$sth = $dbh->prepare('
SELECT id
FROM `users`
WHERE username=:username
');
$sth->bindParam('username', $bggusername, PDO::PARAM_STR);
$sth->execute();
$id = FALSE;
if ($row = $sth->fetch(PDO::FETCH_ASSOC)) {
$id = $row['id'];
}
$sth = NULL;
$params = array('username' => $bggusername, 'cookie' => $cookie);
if ($id === FALSE) {
$sth = $dbh->prepare('INSERT INTO users (username, cookie) VALUES (:username, :cookie)');
} else {
$sth = $dbh->prepare('UPDATE users SET username=:username, cookie=:cookie WHERE id=:id');
$params['id'] = $id;
}
$result = $sth->execute($params);
# Now the user is authenticated, we can delete the auth request
if ($result) {
$sth = $dbh->prepare('DELETE FROM authrequests WHERE id=:id');
$delete_result = $sth->execute(array(':id' => $auth_req_id));
if ($delete_result === FALSE) {
$info = $sth->errorInfo();
error_report("Warning: There was en error deleting auth request ID=" . $auth_req_id . " (" . $info[2] . "). Until it is deleted, that user cannot re-auth.");
}
}
return $result !== FALSE;
}
示例15: run_test
//.........这里部分代码省略.........
$wanted_re = str_replace('%s', '[^\\r\\n]+', $wanted_re);
$wanted_re = str_replace('%a', '.+', $wanted_re);
$wanted_re = str_replace('%w', '\\s*', $wanted_re);
$wanted_re = str_replace('%i', '[+-]?\\d+', $wanted_re);
$wanted_re = str_replace('%d', '\\d+', $wanted_re);
$wanted_re = str_replace('%x', '[0-9a-fA-F]+', $wanted_re);
$wanted_re = str_replace('%f', '[+-]?\\.?\\d+\\.?\\d*(?:[Ee][+-]?\\d+)?', $wanted_re);
$wanted_re = str_replace('%c', '.', $wanted_re);
// %f allows two points "-.0.0" but that is the best *simple* expression
}
/* DEBUG YOUR REGEX HERE
var_dump($wanted_re);
print(str_repeat('=', 80) . "\n");
var_dump($output);
*/
if (preg_match((string) "/^{$wanted_re}\$/s", $output)) {
$passed = true;
if (!$cfg['keep']['php']) {
@unlink($test_file);
}
if (isset($old_php)) {
$php = $old_php;
}
if (!$leaked && !$failed_headers) {
show_result("PASS", $tested, $tested_file, '', $temp_filenames);
return 'PASSED';
}
}
} else {
$wanted = trim($section_text['EXPECT']);
$wanted = preg_replace('/\\r\\n/', "\n", $wanted);
show_file_block('exp', $wanted);
// compare and leave on success
if (!strcmp($output, $wanted)) {
$passed = true;
if (!$cfg['keep']['php']) {
@unlink($test_file);
}
if (isset($old_php)) {
$php = $old_php;
}
if (!$leaked && !$failed_headers) {
show_result("PASS", $tested, $tested_file, '', $temp_filenames);
return 'PASSED';
}
}
$wanted_re = null;
}
// Test failed so we need to report details.
if ($failed_headers) {
$passed = false;
$wanted = $wanted_headers . "\n--HEADERS--\n" . $wanted;
$output = $output_headers . "\n--HEADERS--\n" . $output;
if (isset($wanted_re)) {
$wanted_re = preg_quote($wanted_headers . "\n--HEADERS--\n", '/') . $wanted_re;
}
}
if ($leaked) {
$restype[] = 'LEAK';
}
if ($warn) {
$restype[] = 'WARN';
}
if (!$passed) {
if (isset($section_text['XFAIL'])) {
$restype[] = 'XFAIL';
} else {
$restype[] = 'FAIL';
}
}
if (!$passed) {
// write .exp
if (strpos($log_format, 'E') !== false && file_put_contents($exp_filename, (string) $wanted, FILE_BINARY) === false) {
error("Cannot create expected test output - {$exp_filename}");
}
// write .out
if (strpos($log_format, 'O') !== false && file_put_contents($output_filename, (string) $output, FILE_BINARY) === false) {
error("Cannot create test output - {$output_filename}");
}
// write .diff
$diff = generate_diff($wanted, $wanted_re, $output);
show_file_block('diff', $diff);
if (strpos($log_format, 'D') !== false && file_put_contents($diff_filename, (string) $diff, FILE_BINARY) === false) {
error("Cannot create test diff - {$diff_filename}");
}
// write .log
if (strpos($log_format, 'L') !== false && file_put_contents($log_filename, "\n---- EXPECTED OUTPUT\n{$wanted}\n---- ACTUAL OUTPUT\n{$output}\n---- FAILED\n", FILE_BINARY) === false) {
error("Cannot create test log - {$log_filename}");
error_report($file, $log_filename, $tested);
}
}
show_result(implode('&', $restype), $tested, $tested_file, $info, $temp_filenames);
foreach ($restype as $type) {
$PHP_FAILED_TESTS[$type . 'ED'][] = array('name' => $file, 'test_name' => (is_array($IN_REDIRECT) ? $IN_REDIRECT['via'] : '') . $tested . " [{$tested_file}]", 'output' => $output_filename, 'diff' => $diff_filename, 'info' => $info);
}
if (isset($old_php)) {
$php = $old_php;
}
return $restype[0] . 'ED';
}