From: Felipe Pena Date: Tue, 18 Mar 2008 00:37:35 +0000 (+0000) Subject: Fix build X-Git-Tag: RELEASE_2_0_0a1~114 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c7b9a55cb665c8d2f4acbf8759f34411db0793b;p=php Fix build --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index ffaf67a73a..1ad1b5e152 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -2426,7 +2426,7 @@ static void do_inherit_parent_constructor(zend_class_entry *ce TSRMLS_DC) /* {{{ if (function->common.fn_flags & ZEND_ACC_CTOR) { /* inherit parent's constructor */ zend_u_hash_update(&ce->function_table, ZEND_STR_TYPE, lc_parent_class_name, ce->parent->name_length+1, function, sizeof(zend_function), NULL); - function_add_ref(function); + function_add_ref(function TSRMLS_CC); } } efree(lc_parent_class_name.v); diff --git a/ext/standard/exec.c b/ext/standard/exec.c index 78521eefbd..95116ff320 100644 --- a/ext/standard/exec.c +++ b/ext/standard/exec.c @@ -24,6 +24,7 @@ #include "php_string.h" #include "ext/standard/head.h" #include "ext/standard/file.h" +#include "basic_functions.h" #include "exec.h" #include "php_globals.h" #include "SAPI.h" @@ -252,6 +253,8 @@ PHPAPI char *php_escape_shell_cmd(char *str) char *cmd; char *p = NULL; size_t estimate = (2 * l) + 1; + + TSRMLS_FETCH(); cmd = safe_emalloc(2, l, 1);