summaryrefslogtreecommitdiff
path: root/UPGRADING.INTERNALS
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2010-09-17 08:42:12 +0000
committerPierre Joye <pajoye@php.net>2010-09-17 08:42:12 +0000
commit79ee513903fb03a57f2676fb69943b15ff173e91 (patch)
treeb10bc1c32d986830bd3ff41f9b3fba1994f2e0f7 /UPGRADING.INTERNALS
parent05383a1072d5dacf6d26c84d2bf3241f03c7b0cf (diff)
downloadphp-git-79ee513903fb03a57f2676fb69943b15ff173e91.tar.gz
- 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
Diffstat (limited to 'UPGRADING.INTERNALS')
-rw-r--r--UPGRADING.INTERNALS54
1 files changed, 25 insertions, 29 deletions
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);
+