summaryrefslogtreecommitdiff
path: root/ext/standard/microtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/microtime.c')
-rw-r--r--ext/standard/microtime.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/microtime.c b/ext/standard/microtime.c
index a492ae4018..1eec292e18 100644
--- a/ext/standard/microtime.c
+++ b/ext/standard/microtime.c
@@ -93,13 +93,13 @@ PHP_FUNCTION(getrusage)
#if HAVE_GETRUSAGE
struct rusage usg;
int ac = ARG_COUNT(ht);
- pval *pwho;
+ pval **pwho;
int who = RUSAGE_SELF;
if(ac == 1 &&
- getParameters(ht, ac, &pwho) != FAILURE) {
- convert_to_long(pwho);
- if(pwho->value.lval == 1)
+ getParametersEx(ac, &pwho) != FAILURE) {
+ convert_to_long_ex(pwho);
+ if((*pwho)->value.lval == 1)
who = RUSAGE_CHILDREN;
}