mirror of https://github.com/BOINC/boinc.git
fix PHP warnings
This commit is contained in:
parent
d50d0f9495
commit
ac66666ed6
|
@ -46,7 +46,7 @@ ini_set('error_reporting', E_ALL);
|
||||||
// Job parameters. Edit as needed
|
// Job parameters. Edit as needed
|
||||||
// (should eventually make them cmdline args)
|
// (should eventually make them cmdline args)
|
||||||
|
|
||||||
$job_params = null;
|
$job_params = new StdClass;
|
||||||
$job_params->rsc_fpops_est = 3600e9; // estimate: 1 GFLOPS-hour
|
$job_params->rsc_fpops_est = 3600e9; // estimate: 1 GFLOPS-hour
|
||||||
$job_params->rsc_fpops_bound = 86400e9; // limit: 1 GFLOPS-day
|
$job_params->rsc_fpops_bound = 86400e9; // limit: 1 GFLOPS-day
|
||||||
$job_params->rsc_memory_bound = 5e8; // mem bound: 500MB
|
$job_params->rsc_memory_bound = 5e8; // mem bound: 500MB
|
||||||
|
|
|
@ -226,7 +226,7 @@ function process_file($a, $v, $p, $name, $fds) {
|
||||||
global $key_dir;
|
global $key_dir;
|
||||||
$fd = lookup_file($fds, $name);
|
$fd = lookup_file($fds, $name);
|
||||||
if (!$fd) {
|
if (!$fd) {
|
||||||
$fd = null;
|
$fd = new StdClass;
|
||||||
$fd->physical_name = $name;
|
$fd->physical_name = $name;
|
||||||
$fd->logical_name = null;
|
$fd->logical_name = null;
|
||||||
$fd->url = array();
|
$fd->url = array();
|
||||||
|
@ -370,7 +370,7 @@ function convert_simplexml($x) {
|
||||||
$fxs = $x->xpath('file');
|
$fxs = $x->xpath('file');
|
||||||
foreach ($fxs as $fx) {
|
foreach ($fxs as $fx) {
|
||||||
//echo "fx: "; print_r($fx);
|
//echo "fx: "; print_r($fx);
|
||||||
$fd = null;
|
$fd = new StdClass;
|
||||||
|
|
||||||
$fd->present = false;
|
$fd->present = false;
|
||||||
$fd->physical_name = trim((string) $fx->physical_name);
|
$fd->physical_name = trim((string) $fx->physical_name);
|
||||||
|
@ -385,7 +385,7 @@ function convert_simplexml($x) {
|
||||||
|
|
||||||
$fds[] = $fd;
|
$fds[] = $fd;
|
||||||
}
|
}
|
||||||
$v = null;
|
$v = new StdClass;
|
||||||
$v->files = $fds;
|
$v->files = $fds;
|
||||||
$v->dont_throttle = get_bool($x, "dont_throttle");
|
$v->dont_throttle = get_bool($x, "dont_throttle");
|
||||||
$v->needs_network = get_bool($x, "needs_network");
|
$v->needs_network = get_bool($x, "needs_network");
|
||||||
|
@ -409,7 +409,7 @@ function process_version($a, $v, $p) {
|
||||||
}
|
}
|
||||||
$vers = convert_simplexml($x);
|
$vers = convert_simplexml($x);
|
||||||
} else {
|
} else {
|
||||||
$vers = null;
|
$vers = new StdClass;
|
||||||
$vers->files = array();
|
$vers->files = array();
|
||||||
$vers->dont_throttle = false;
|
$vers->dont_throttle = false;
|
||||||
$vers->needs_network = false;
|
$vers->needs_network = false;
|
||||||
|
|
Loading…
Reference in New Issue