From: Zeev Suraski Date: Wed, 1 Jan 2003 13:26:17 +0000 (+0000) Subject: build fixes X-Git-Tag: PHP_5_0_dev_before_13561_fix~534 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70446a64160fe070c6cc0df4a11a817732d3bcbb;p=php build fixes --- diff --git a/ext/standard/browscap.c b/ext/standard/browscap.c index fbf9a3920f..515d243568 100644 --- a/ext/standard/browscap.c +++ b/ext/standard/browscap.c @@ -35,6 +35,8 @@ static zval *current_section; static void browscap_entry_dtor(zval *pvalue) { if (Z_TYPE_P(pvalue) == IS_OBJECT) { + TSRMLS_FETCH(); + zend_hash_destroy(Z_OBJPROP_P(pvalue)); free(Z_OBJPROP_P(pvalue)); } @@ -102,6 +104,7 @@ static void php_browscap_parser_cb(zval *arg1, zval *arg2, int callback_type, vo if (current_section && arg2) { zval *new_property; char *new_key; + TSRMLS_FETCH(); new_property = (zval *) malloc(sizeof(zval)); INIT_PZVAL(new_property); @@ -189,6 +192,7 @@ static int browser_reg_compare(zval **browser, int num_args, va_list args, zend_ regex_t r; char *lookup_browser_name = va_arg(args, char *); zval **found_browser_entry = va_arg(args, zval **); + TSRMLS_FETCH(); if (*found_browser_entry) { /* already found */ return 0; diff --git a/ext/standard/incomplete_class.c b/ext/standard/incomplete_class.c index 4320706473..c6f0234cad 100644 --- a/ext/standard/incomplete_class.c +++ b/ext/standard/incomplete_class.c @@ -107,6 +107,7 @@ char *php_lookup_class_name(zval *object, size_t *nlen, zend_bool del) zval **val; char *retval = NULL; HashTable *object_properties; + TSRMLS_FETCH(); object_properties = Z_OBJPROP_P(object); @@ -129,6 +130,7 @@ char *php_lookup_class_name(zval *object, size_t *nlen, zend_bool del) void php_store_class_name(zval *object, const char *name, size_t len) { zval *val; + TSRMLS_FETCH(); MAKE_STD_ZVAL(val);