diff options
| author | Zeev Suraski <zeev@php.net> | 2003-01-01 13:26:17 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2003-01-01 13:26:17 +0000 |
| commit | 70446a64160fe070c6cc0df4a11a817732d3bcbb (patch) | |
| tree | 6730750af368af17bedc4548b84a1da57cb18725 | |
| parent | 6197460836021d8ac3d4f38e1c73de03bb7945f0 (diff) | |
| download | php-git-70446a64160fe070c6cc0df4a11a817732d3bcbb.tar.gz | |
build fixes
| -rw-r--r-- | ext/standard/browscap.c | 4 | ||||
| -rw-r--r-- | ext/standard/incomplete_class.c | 2 |
2 files changed, 6 insertions, 0 deletions
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); |
