From: Pierre Joye Date: Fri, 17 Sep 2010 08:42:12 +0000 (+0000) Subject: - drop TSRMLS_FETCH in sapi_register_* (won't bring much at runtime :) ) and cleanup... X-Git-Tag: php-5.4.0alpha1~191^2~929 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79ee513903fb03a57f2676fb69943b15ff173e91;p=php - drop TSRMLS_FETCH in sapi_register_* (won't bring much at runtime :) ) and cleanup/group the upgrade guide, no need of twenty titles for the same change --- diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS index 33b93a7a32..a102a2927a 100644 --- a/UPGRADING.INTERNALS +++ b/UPGRADING.INTERNALS @@ -8,6 +8,8 @@ UPGRADE NOTES - PHP X.Y c. readlink support d. layout of some core ZE structures (zend_op_array, zend_class_entry, ...) e. Zend\zend_fast_cache.h has been removed + f. API Signature changes + ======================== 1. Internal API changes ======================== @@ -66,32 +68,26 @@ 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); - - h. php_stream_context_alloc -php_stream_context_alloc 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); + f. API Signature changes +. zend_list_insert + ZEND_API int zend_list_insert(void *ptr, int type TSRMLS_DC); + call: zend_list_insert(a, SOMETYPE TSRMLS_CC); + NB: If zend_list_insert is used to register a resource, + ZEND_REGISTER_RESOURCE could be used instead. + +. php_le_stream_context(TSRMLS_C) + PHPAPI php_stream_context *php_stream_context_alloc(TSRMLS_D) + call: context = php_stream_context_alloc(TSRMLS_C); + +. php_stream_context_alloc + PHPAPI php_stream_context *php_stream_context_alloc(TSRMLS_D); + call: context = php_stream_context_alloc(TSRMLS_C); +. sapi_register_default_post_reader + SAPI_API int sapi_register_default_post_reader(void (*default_post_reader)(TSRMLS_D) TSRMLS_DC); + +. sapi_register_treat_data + SAPI_API int sapi_register_treat_data(void (*treat_data)(int arg, char *str, zval *destArray TSRMLS_DC) TSRMLS_DC); + +. sapi_register_input_filter + SAPI_API int sapi_register_input_filter(unsigned int (*input_filter)(int arg, char *var, char **val, unsigned int val_len, unsigned int *new_val_len TSRMLS_DC), unsigned int (*input_filter_init)(TSRMLS_D) TSRMLS_DC); +