diff options
author | Pierre Joye <pajoye@php.net> | 2010-09-16 09:13:19 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2010-09-16 09:13:19 +0000 |
commit | aa0ed267a29b83099715c48f25bcbf9642bf7bb2 (patch) | |
tree | d834f5f091ed0a5681caa816a41c5de8f2eb1cb3 /UPGRADING.INTERNALS | |
parent | 14e77486e06e21bfc29d80327bdb85ff7e1f0bfa (diff) | |
download | php-git-aa0ed267a29b83099715c48f25bcbf9642bf7bb2.tar.gz |
- use TSRMLS_*C instead of TSRMLS_FETCH in zend_list_insert
Diffstat (limited to 'UPGRADING.INTERNALS')
-rw-r--r-- | UPGRADING.INTERNALS | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS index 4b5dac1b58..08e3085194 100644 --- a/UPGRADING.INTERNALS +++ b/UPGRADING.INTERNALS @@ -66,4 +66,23 @@ ZEND_FAST_FREE_REL(p, fc_type) Use emalloc, emalloc_rel, efree or efree_rel instead. + f. zend_list_insert +zend_list_insert uses now TSRMLS_DC: +ZEND_API int zend_list_insert(void *ptr, int type TSRMLS_DC); + +it has to be called using: + +zend_list_insert(a, SOMETYPE TSRMLS_CC); + +If zend_list_insert is used to register a resource, ZEND_REGISTER_RESOURCE +could be used instead. + + g. php_le_stream_context(TSRMLS_C) +php_le_stream_context uses now TSRMLS_D: + +PHPAPI php_stream_context *php_stream_context_alloc(TSRMLS_D) + +it has to be called using: + +context = php_stream_context_alloc(TSRMLS_C); |