From 5fb11bc86ed91fac009d950a79b617cc1268a16c Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 20 Feb 2006 09:38:47 +0000 Subject: [PATCH] Fixed memory corruption --- ext/standard/proc_open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index 93cb9b8ec7..eb6eecc15e 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -809,7 +809,7 @@ PHP_FUNCTION(proc_open) proc = (struct php_process_handle*)pemalloc(sizeof(struct php_process_handle), is_persistent); proc->is_persistent = is_persistent; - proc->command = command; + proc->command = pestrdup(command, is_persistent); proc->npipes = ndesc; proc->child = child; proc->env = env; -- 2.50.1