From 17d420e5f7dd51343fb9c75762c8bb67007e176a Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 21 Jan 2004 16:57:13 +0000 Subject: [PATCH] Fixed bug #26938 (exec() has problems reading long lines). --- NEWS | 2 ++ ext/standard/exec.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 38cffe100e..4f8057b6ad 100644 --- a/NEWS +++ b/NEWS @@ -9,6 +9,8 @@ PHP NEWS (Derick) - Fixed problems with longlong values in mysqli. (Georg) - Fixed class name case preserving of user defined classes. (Marcus) +- Fixed bug #26938 (exec() has problems reading long lines). + (Ilia, runekl[at]opoint[dot]com - Fixed bug #26947 (ext/dom: Crash when using DomDocument::getElementById()). (Christian) - Fixed bug #26911 (crash in sqlite extension when fetching data from empty diff --git a/ext/standard/exec.c b/ext/standard/exec.c index a2f8571d57..cc579e9be7 100644 --- a/ext/standard/exec.c +++ b/ext/standard/exec.c @@ -125,7 +125,7 @@ int php_exec(int type, char *cmd, pval *array, pval *return_value TSRMLS_DC) } continue; } else if (b != buf) { - bufl += buflen - EXEC_INPUT_BUF; + bufl += b - buf; } if (type == 1) { -- 2.50.1