iliaa Wed Feb 19 19:34:24 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/standard exec.c
Log:
MFH
Index: php4/ext/standard/exec.c
diff -u php4/ext/standard/exec.c:1.84.2.4 php4/ext/standard/exec.c:1.84.2.5
--- php4/ext/standard/exec.c:1.84.2.4 Tue Dec 31 11:35:27 2002
+++ php4/ext/standard/exec.c Wed Feb 19 19:34:24 2003
@@ -15,7 +15,7 @@
| Author: Rasmus Lerdorf |
+----------------------------------------------------------------------+
*/
-/* $Id: exec.c,v 1.84.2.4 2002/12/31 16:35:27 sebastian Exp $ */
+/* $Id: exec.c,v 1.84.2.5 2003/02/20 00:34:24 iliaa Exp $ */
#include <stdio.h>
#include "php.h"
@@ -276,11 +276,12 @@
RETVAL_STRINGL(buf, l, 1);
}
} else {
- int b, i;
+ size_t b;
- while ((b = fread(buf, 1, buflen, fp)) > 0) {
- for (i = 0; i < b; i++)
- if (output) (void)PUTC(buf[i]);
+ while ((b = fread(buf, buflen, 1, fp)) > 0) {
+ if (output) {
+ PHPWRITE(buf, b);
+ }
}
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php