summaryrefslogtreecommitdiff
path: root/ext/standard/exec.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-12-13 22:50:10 +0000
committerZeev Suraski <zeev@php.net>2000-12-13 22:50:10 +0000
commitbe895bcb96157b5a36d1183d3b9567ede57a45f8 (patch)
treecd2316a2753fd7c9837a8d71c3585d8dbf5c18c7 /ext/standard/exec.c
parent0e41e3c7cfa369fd261dca2caf9ad7083da86b69 (diff)
downloadphp-git-be895bcb96157b5a36d1183d3b9567ede57a45f8.tar.gz
Fix call_user_function() with objects - it could leak under certain circumstances
Diffstat (limited to 'ext/standard/exec.c')
-rw-r--r--ext/standard/exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/exec.c b/ext/standard/exec.c
index 1adaa2b2e6..cfa1abf033 100644
--- a/ext/standard/exec.c
+++ b/ext/standard/exec.c
@@ -421,7 +421,8 @@ 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,EXEC_INPUT_BUF,in);
+ readbytes = fread(ret+total_readbytes,1,5,in);
if (readbytes<=0) {
break;
}