summaryrefslogtreecommitdiff
path: root/ext/standard/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/exec.c')
-rw-r--r--ext/standard/exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/exec.c b/ext/standard/exec.c
index 6720231089..72878f9c9e 100644
--- a/ext/standard/exec.c
+++ b/ext/standard/exec.c
@@ -200,7 +200,7 @@ static void php_exec_ex(INTERNAL_FUNCTION_PARAMETERS, int mode) /* {{{ */
}
if (ret_code) {
zval_dtor(ret_code);
- ZVAL_LONG(ret_code, ret);
+ ZVAL_INT(ret_code, ret);
}
}
/* }}} */
@@ -470,9 +470,9 @@ PHP_FUNCTION(shell_exec)
Change the priority of the current process */
PHP_FUNCTION(proc_nice)
{
- long pri;
+ php_int_t pri;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &pri) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "i", &pri) == FAILURE) {
RETURN_FALSE;
}