summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/exec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/exec.c b/ext/standard/exec.c
index e23dc7c642..cd4bd61ea2 100644
--- a/ext/standard/exec.c
+++ b/ext/standard/exec.c
@@ -269,6 +269,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++) {
@@ -357,6 +359,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