From 4443f9d90fb9713cf2295c2a25f0653b70ef7acd Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Thu, 16 Oct 2008 13:04:30 +0000 Subject: [PATCH] - Revert --- ext/standard/exec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/standard/exec.c b/ext/standard/exec.c index 4f3d433906..539707c868 100644 --- a/ext/standard/exec.c +++ b/ext/standard/exec.c @@ -254,6 +254,8 @@ PHPAPI char *php_escape_shell_cmd(char *str) char *p = NULL; size_t estimate = (2 * l) + 1; + TSRMLS_FETCH(); + cmd = safe_emalloc(2, l, 1); for (x = 0, y = 0; x < l; x++) { @@ -342,6 +344,8 @@ PHPAPI char *php_escape_shell_arg(char *str) char *cmd; size_t estimate = (4 * l) + 3; + TSRMLS_FETCH(); + cmd = safe_emalloc(4, l, 3); /* worst case */ #ifdef PHP_WIN32 -- 2.50.1