summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/exec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/standard/exec.c b/ext/standard/exec.c
index cfa1abf033..1adaa2b2e6 100644
--- a/ext/standard/exec.c
+++ b/ext/standard/exec.c
@@ -421,8 +421,7 @@ PHP_FUNCTION(shell_exec)
allocated_space = EXEC_INPUT_BUF;
ret = (char *) emalloc(allocated_space);
while (1) {
-// readbytes = fread(ret+total_readbytes,1,EXEC_INPUT_BUF,in);
- readbytes = fread(ret+total_readbytes,1,5,in);
+ readbytes = fread(ret+total_readbytes,1,EXEC_INPUT_BUF,in);
if (readbytes<=0) {
break;
}