svn: /php/php-src/trunk/ UPGRADING.INTERNALS
| From: | Pierre Joye | Date: | Fri, 17 Sep 2010 08:42:12 +0000 |
| Subject: | svn: /php/php-src/trunk/ UPGRADING.INTERNALS | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-63515@lists.php.net to get a copy of this message | ||
pajoye Fri, 17 Sep 2010 08:42:12 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=303454
Log:
- 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
Changed paths:
U php/php-src/trunk/UPGRADING.INTERNALS
Modified: php/php-src/trunk/UPGRADING.INTERNALS
===================================================================
--- php/php-src/trunk/UPGRADING.INTERNALS 2010-09-17 08:41:05 UTC (rev 303453)
+++ php/php-src/trunk/UPGRADING.INTERNALS 2010-09-17 08:42:12 UTC (rev 303454)
@@ -8,6 +8,8 @@
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 @@
Use emalloc, emalloc_rel, efree or efree_rel instead.
- f. zend_list_insert
-zend_list_insert uses now TSRMLS_DC:
+ 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.
-ZEND_API int zend_list_insert(void *ptr, int type TSRMLS_DC);
+. php_le_stream_context(TSRMLS_C)
+ PHPAPI php_stream_context *php_stream_context_alloc(TSRMLS_D)
+ call: context = php_stream_context_alloc(TSRMLS_C);
-it has to be called using:
+. 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);
-zend_list_insert(a, SOMETYPE TSRMLS_CC);
+. sapi_register_treat_data
+ SAPI_API int sapi_register_treat_data(void (*treat_data)(int arg, char *str, zval *destArray
TSRMLS_DC) TSRMLS_DC);
-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);
+. 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);
+