]> granicus.if.org Git - php/commitdiff
- Revert
authorFelipe Pena <felipe@php.net>
Thu, 16 Oct 2008 13:04:30 +0000 (13:04 +0000)
committerFelipe Pena <felipe@php.net>
Thu, 16 Oct 2008 13:04:30 +0000 (13:04 +0000)
ext/standard/exec.c

index 4f3d43390601aa4afd032b2102886d91c38138c3..539707c868a9c245e12780cfd5f2765da117b32f 100644 (file)
@@ -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