diff options
author | Anthon Pang <apang@softwaredevelopment.ca> | 2013-03-25 05:07:27 +0400 |
---|---|---|
committer | Anthon Pang <apang@softwaredevelopment.ca> | 2013-03-25 05:07:58 +0400 |
commit | cda4c12477c12878a4793fd9d999b5d8e5b944c1 (patch) | |
tree | 2f6a1faed03e253d808a2abccd2da0f4b9a14cf8 /tests | |
parent | 1036bb4f283651b6b9623f27f4811ab59a79c15e (diff) |
merged from https://github.com/robocoder/xhprof/commit/a29189dd51f6c8cf3939ac6ee10e90139aabb8f4
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/lib/xhprof-0.9.2/xhprof_lib/utils/xhprof_lib.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/xhprof-0.9.2/xhprof_lib/utils/xhprof_lib.php b/tests/lib/xhprof-0.9.2/xhprof_lib/utils/xhprof_lib.php index fed9487039..9e4610534f 100755 --- a/tests/lib/xhprof-0.9.2/xhprof_lib/utils/xhprof_lib.php +++ b/tests/lib/xhprof-0.9.2/xhprof_lib/utils/xhprof_lib.php @@ -829,6 +829,10 @@ function xhprof_param_init($params) { exit(); } + if ($k === 'run') { + $p = implode(',', array_filter(explode(',', $p), 'is_numeric')); + } + // create a global variable using the parameter name. $GLOBALS[$k] = $p; } |