summaryrefslogtreecommitdiff
path: root/ext/standard
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-10-16 13:00:27 +0000
committerFelipe Pena <felipe@php.net>2008-10-16 13:00:27 +0000
commitc0c9fb9defed98dd43269ea5cb878b7fe55f0f93 (patch)
tree2097ce354ec34079f4b48ca46804d0c2a8a23218 /ext/standard
parent35780b69a8b4ed18fbbeee4289b748090ab151fb (diff)
downloadphp-git-c0c9fb9defed98dd43269ea5cb878b7fe55f0f93.tar.gz
- Revert
Diffstat (limited to 'ext/standard')
-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