From: Dmitry Stogov Date: Mon, 20 Feb 2006 09:38:47 +0000 (+0000) Subject: Fixed memory corruption X-Git-Tag: RELEASE_1_2~160 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5fb11bc86ed91fac009d950a79b617cc1268a16c;p=php Fixed memory corruption --- 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;