zeev Wed Jan 1 08:26:17 2003 EDT Modified files: /php4/ext/standard browscap.c incomplete_class.c Log: build fixes Index: php4/ext/standard/browscap.c diff -u php4/ext/standard/browscap.c:1.63 php4/ext/standard/browscap.c:1.64 --- php4/ext/standard/browscap.c:1.63 Tue Dec 31 11:07:34 2002 +++ php4/ext/standard/browscap.c Wed Jan 1 08:26:17 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: browscap.c,v 1.63 2002/12/31 16:07:34 sebastian Exp $ */ +/* $Id: browscap.c,v 1.64 2003/01/01 13:26:17 zeev Exp $ */ #include "php.h" #include "php_regex.h" @@ -35,6 +35,8 @@ 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 @@ 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 @@ 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; Index: php4/ext/standard/incomplete_class.c diff -u php4/ext/standard/incomplete_class.c:1.16 php4/ext/standard/incomplete_class.c:1.17 --- php4/ext/standard/incomplete_class.c:1.16 Tue Dec 31 11:07:43 2002 +++ php4/ext/standard/incomplete_class.c Wed Jan 1 08:26:17 2003 @@ -17,7 +17,7 @@ */ -/* $Id: incomplete_class.c,v 1.16 2002/12/31 16:07:43 sebastian Exp $ */ +/* $Id: incomplete_class.c,v 1.17 2003/01/01 13:26:17 zeev Exp $ */ #include "php.h" #include "basic_functions.h" @@ -107,6 +107,7 @@ zval **val; char *retval = NULL; HashTable *object_properties; + TSRMLS_FETCH(); object_properties = Z_OBJPROP_P(object); @@ -129,6 +130,7 @@ void php_store_class_name(zval *object, const char *name, size_t len) { zval *val; + TSRMLS_FETCH(); MAKE_STD_ZVAL(val);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php