diff options
author | Zeev Suraski <zeev@php.net> | 2003-01-01 12:38:55 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2003-01-01 12:38:55 +0000 |
commit | 9b09ba614df58aaff97206bc05ffb06f4d57f93f (patch) | |
tree | 8a0ef270847cdee2cf767185c1be632e3a6685d1 /Zend/zend_API.c | |
parent | a5f58cd6e58c9375131cb3a3c4e29f824ec51b98 (diff) | |
download | php-git-9b09ba614df58aaff97206bc05ffb06f4d57f93f.tar.gz |
Win32 build fix
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r-- | Zend/zend_API.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 4765b02f15..13207c177d 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -936,6 +936,7 @@ ZEND_API int add_get_index_stringl(zval *arg, uint index, char *str, uint length ZEND_API int add_property_long_ex(zval *arg, char *key, uint key_len, long n) { zval *tmp; + TSRMLS_FETCH(); MAKE_STD_ZVAL(tmp); ZVAL_LONG(tmp, n); @@ -946,6 +947,7 @@ ZEND_API int add_property_long_ex(zval *arg, char *key, uint key_len, long n) ZEND_API int add_property_bool_ex(zval *arg, char *key, uint key_len, int b) { zval *tmp; + TSRMLS_FETCH(); MAKE_STD_ZVAL(tmp); ZVAL_BOOL(tmp, b); @@ -956,6 +958,7 @@ ZEND_API int add_property_bool_ex(zval *arg, char *key, uint key_len, int b) ZEND_API int add_property_null_ex(zval *arg, char *key, uint key_len) { zval *tmp; + TSRMLS_FETCH(); MAKE_STD_ZVAL(tmp); ZVAL_NULL(tmp); @@ -966,6 +969,7 @@ ZEND_API int add_property_null_ex(zval *arg, char *key, uint key_len) ZEND_API int add_property_resource_ex(zval *arg, char *key, uint key_len, long n) { zval *tmp; + TSRMLS_FETCH(); MAKE_STD_ZVAL(tmp); ZVAL_RESOURCE(tmp, n); @@ -977,7 +981,8 @@ ZEND_API int add_property_resource_ex(zval *arg, char *key, uint key_len, long n ZEND_API int add_property_double_ex(zval *arg, char *key, uint key_len, double d) { zval *tmp; - + TSRMLS_FETCH(); + MAKE_STD_ZVAL(tmp); ZVAL_DOUBLE(tmp, d); @@ -988,6 +993,7 @@ ZEND_API int add_property_double_ex(zval *arg, char *key, uint key_len, double d ZEND_API int add_property_string_ex(zval *arg, char *key, uint key_len, char *str, int duplicate) { zval *tmp; + TSRMLS_FETCH(); MAKE_STD_ZVAL(tmp); ZVAL_STRING(tmp, str, duplicate); @@ -998,6 +1004,7 @@ ZEND_API int add_property_string_ex(zval *arg, char *key, uint key_len, char *st ZEND_API int add_property_stringl_ex(zval *arg, char *key, uint key_len, char *str, uint length, int duplicate) { zval *tmp; + TSRMLS_FETCH(); MAKE_STD_ZVAL(tmp); ZVAL_STRINGL(tmp, str, length, duplicate); @@ -1007,6 +1014,8 @@ ZEND_API int add_property_stringl_ex(zval *arg, char *key, uint key_len, char *s ZEND_API int add_property_zval_ex(zval *arg, char *key, uint key_len, zval *value) { + TSRMLS_FETCH(); + return zend_hash_update(Z_OBJPROP_P(arg), key, key_len, (void *) &value, sizeof(zval *), NULL); } |