cvs: ZendEngine2 / zend_API.c zend_API.h
| From: | Andrei Zmievski | Date: | Tue, 17 Oct 2006 22:15:19 +0000 |
| Subject: | cvs: ZendEngine2 / zend_API.c zend_API.h | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-5332@lists.php.net to get a copy of this message | ||
andrei Tue Oct 17 22:15:19 2006 UTC
Modified files:
/ZendEngine2 zend_API.c zend_API.h
Log:
Fix thread safety.
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_API.c?r1=1.412&r2=1.413&diff_format=u
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.412 ZendEngine2/zend_API.c:1.413
--- ZendEngine2/zend_API.c:1.412 Tue Oct 17 17:56:42 2006
+++ ZendEngine2/zend_API.c Tue Oct 17 22:15:19 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_API.c,v 1.412 2006/10/17 17:56:42 andrei Exp $ */
+/* $Id: zend_API.c,v 1.413 2006/10/17 22:15:19 andrei Exp $ */
#include "zend.h"
#include "zend_execute.h"
@@ -1709,7 +1709,7 @@
return SUCCESS;
}
-ZEND_API int add_utf8_property_zval_ex(zval *arg, char *key, uint key_len, zval *value)
+ZEND_API int add_utf8_property_zval_ex(zval *arg, char *key, uint key_len, zval *value TSRMLS_DC)
{
zval *z_key;
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_API.h?r1=1.263&r2=1.264&diff_format=u
Index: ZendEngine2/zend_API.h
diff -u ZendEngine2/zend_API.h:1.263 ZendEngine2/zend_API.h:1.264
--- ZendEngine2/zend_API.h:1.263 Tue Oct 17 17:56:42 2006
+++ ZendEngine2/zend_API.h Tue Oct 17 22:15:19 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_API.h,v 1.263 2006/10/17 17:56:42 andrei Exp $ */
+/* $Id: zend_API.h,v 1.264 2006/10/17 22:15:19 andrei Exp $ */
#ifndef ZEND_API_H
#define ZEND_API_H
@@ -897,76 +897,76 @@
#define add_utf8_assoc_text(__arg, __key, __str, __duplicate) add_utf8_assoc_test_ex(__arg, __key,
strlen(__key)+1, __str, __duplicate)
#define add_utf8_assoc_textl(__arg, __key, __str, __length, __duplicate)
add_utf8_assoc_textl_ex(__arg, __key, strlen(__key)+1, __str, __length, __duplicate)
-ZEND_API int add_utf8_property_zval_ex(zval *arg, char *key, uint key_len, zval *value);
+ZEND_API int add_utf8_property_zval_ex(zval *arg, char *key, uint key_len, zval *value TSRMLS_DC);
#define add_utf8_property_null_ex(arg, key, key_len) do { \
zval *___tmp; \
MAKE_STD_ZVAL(___tmp); \
ZVAL_NULL(___tmp); \
- add_utf8_property_zval_ex(arg, key, key_len, ___tmp); \
+ add_utf8_property_zval_ex(arg, key, key_len, ___tmp TSRMLS_CC); \
zval_ptr_dtor(&___tmp); /* write_property will add 1 to refcount */ \
} while (0)
#define add_utf8_property_long_ex(arg, key, key_len, n) do { \
zval *___tmp; \
MAKE_STD_ZVAL(___tmp); \
ZVAL_LONG(___tmp, n); \
- add_utf8_property_zval_ex(arg, key, key_len, ___tmp); \
+ add_utf8_property_zval_ex(arg, key, key_len, ___tmp TSRMLS_CC); \
zval_ptr_dtor(&___tmp); /* write_property will add 1 to refcount */ \
} while (0)
#define add_utf8_property_bool_ex(arg, key, key_len, b) do { \
zval *___tmp; \
MAKE_STD_ZVAL(___tmp); \
ZVAL_BOOL(___tmp, b); \
- add_utf8_property_zval_ex(arg, key, key_len, ___tmp); \
+ add_utf8_property_zval_ex(arg, key, key_len, ___tmp TSRMLS_CC); \
zval_ptr_dtor(&___tmp); /* write_property will add 1 to refcount */ \
} while (0)
#define add_utf8_property_resource_ex(arg, key, key_len, r) do { \
zval *___tmp; \
MAKE_STD_ZVAL(___tmp); \
ZVAL_RESOURCE(___tmp, r); \
- add_utf8_property_zval_ex(arg, key, key_len, ___tmp); \
+ add_utf8_property_zval_ex(arg, key, key_len, ___tmp TSRMLS_CC); \
zval_ptr_dtor(&___tmp); /* write_property will add 1 to refcount */ \
} while (0)
#define add_utf8_property_double_ex(arg, key, key_len, d) do { \
zval *___tmp; \
MAKE_STD_ZVAL(___tmp); \
ZVAL_DOUBLE(___tmp, d); \
- add_utf8_property_zval_ex(arg, key, key_len, ___tmp); \
+ add_utf8_property_zval_ex(arg, key, key_len, ___tmp TSRMLS_CC); \
zval_ptr_dtor(&___tmp); /* write_property will add 1 to refcount */ \
} while (0)
#define add_utf8_property_stringl_ex(arg, key, key_len, str, length, duplicate) do { \
zval *___tmp; \
MAKE_STD_ZVAL(___tmp); \
ZVAL_STRINGL(___tmp, str, length, duplicate); \
- add_utf8_property_zval_ex(arg, key, key_len, ___tmp); \
+ add_utf8_property_zval_ex(arg, key, key_len, ___tmp TSRMLS_CC); \
zval_ptr_dtor(&___tmp); /* write_property will add 1 to refcount */ \
} while (0)
#define add_utf8_property_unicode_ex(arg, key, key_len, str, duplicate) do { \
zval *___tmp; \
MAKE_STD_ZVAL(___tmp); \
ZVAL_UNICODE(___tmp, str, duplicate); \
- add_utf8_property_zval_ex(arg, key, key_len, ___tmp); \
+ add_utf8_property_zval_ex(arg, key, key_len, ___tmp TSRMLS_CC); \
zval_ptr_dtor(&___tmp); /* write_property will add 1 to refcount */ \
} while (0)
#define add_utf8_property_unicodel_ex(arg, key, key_len, str, length, duplicate) do { \
zval *___tmp; \
MAKE_STD_ZVAL(___tmp); \
ZVAL_UNICODEL(___tmp, str, length, duplicate); \
- add_utf8_property_zval_ex(arg, key, key_len, ___tmp); \
+ add_utf8_property_zval_ex(arg, key, key_len, ___tmp TSRMLS_CC); \
zval_ptr_dtor(&___tmp); /* write_property will add 1 to refcount */ \
} while (0)
#define add_utf8_property_zstr_ex(arg, key, key_len, type, str, duplicate) do { \
zval *___tmp; \
MAKE_STD_ZVAL(___tmp); \
ZVAL_ZSTR(___tmp, str, type, duplicate); \
- add_utf8_property_zval_ex(arg, key, key_len, ___tmp); \
+ add_utf8_property_zval_ex(arg, key, key_len, ___tmp TSRMLS_CC); \
zval_ptr_dtor(&___tmp); /* write_property will add 1 to refcount */ \
} while (0)
#define add_utf8_property_zstrl_ex(arg, key, key_len, type, str, length, duplicate) do { \
zval *___tmp; \
MAKE_STD_ZVAL(___tmp); \
ZVAL_ZSTRL(___tmp, str, length, type, duplicate); \
- add_utf8_property_zval_ex(arg, key, key_len, ___tmp); \
+ add_utf8_property_zval_ex(arg, key, key_len, ___tmp TSRMLS_CC); \
zval_ptr_dtor(&___tmp); /* write_property will add 1 to refcount */ \
} while (0)
#define add_utf8_property_text_ex(arg, key, key_len, str, duplicate) do { \