diff options
| author | Anatol Belski <ab@php.net> | 2014-08-18 16:50:54 +0200 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2014-08-18 16:50:54 +0200 |
| commit | b8324e6d635450562ecb253af38f22105e19e460 (patch) | |
| tree | eadecc2f5c251a20013c600212104b0ba4cce8bc /ext/standard/proc_open.c | |
| parent | 97e9d058f09c12161863e5c3832552eb5da3f3c6 (diff) | |
| download | php-git-b8324e6d635450562ecb253af38f22105e19e460.tar.gz | |
further fixes to ext/standard
Diffstat (limited to 'ext/standard/proc_open.c')
| -rw-r--r-- | ext/standard/proc_open.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index cd74ecac51..903b3a7be1 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -260,9 +260,9 @@ PHP_FUNCTION(proc_terminate) { zval *zproc; struct php_process_handle *proc; - long sig_no = SIGTERM; + php_int_t sig_no = SIGTERM; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|l", &zproc, &sig_no) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|i", &zproc, &sig_no) == FAILURE) { RETURN_FALSE; } @@ -328,7 +328,7 @@ PHP_FUNCTION(proc_get_status) array_init(return_value); add_assoc_string(return_value, "command", proc->command); - add_assoc_int(return_value, "pid", (long) proc->child); + add_assoc_int(return_value, "pid", (php_int_t) proc->child); #ifdef PHP_WIN32 |
