summaryrefslogtreecommitdiff
path: root/ext/standard/exec.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-08-27 15:31:48 +0200
committerAnatol Belski <ab@php.net>2014-08-27 20:49:31 +0200
commit3234480827b27ff5d3469a732167afd289632a96 (patch)
tree485ed0c4f5d35107a65ab193f3bc7c27806fbfca /ext/standard/exec.c
parentee552b628c2d9f9455ac85d7791b4b4e8e4ddeb2 (diff)
downloadphp-git-3234480827b27ff5d3469a732167afd289632a96.tar.gz
first show to make 's' work with size_t
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 bd5b2a9f6d..c1a64f4e34 100644
--- a/ext/standard/exec.c
+++ b/ext/standard/exec.c
@@ -171,7 +171,7 @@ err:
static void php_exec_ex(INTERNAL_FUNCTION_PARAMETERS, int mode) /* {{{ */
{
char *cmd;
- int cmd_len;
+ size_t cmd_len;
zval *ret_code=NULL, *ret_array=NULL;
int ret;
@@ -399,7 +399,7 @@ PHPAPI zend_string *php_escape_shell_arg(char *str)
PHP_FUNCTION(escapeshellcmd)
{
char *command;
- int command_len;
+ size_t command_len;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &command, &command_len) == FAILURE) {
return;
@@ -436,7 +436,7 @@ PHP_FUNCTION(shell_exec)
{
FILE *in;
char *command;
- int command_len;
+ size_t command_len;
zend_string *ret;
php_stream *stream;