mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
That slipped in :(
This commit is contained in:
parent
63e6b0b5bf
commit
944c3b40b4
1 changed files with 1 additions and 2 deletions
|
@ -421,8 +421,7 @@ PHP_FUNCTION(shell_exec)
|
||||||
allocated_space = EXEC_INPUT_BUF;
|
allocated_space = EXEC_INPUT_BUF;
|
||||||
ret = (char *) emalloc(allocated_space);
|
ret = (char *) emalloc(allocated_space);
|
||||||
while (1) {
|
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) {
|
if (readbytes<=0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue