com php-src: note on hash table and sprintf: UPGRADING.INTERNALS
| From: | Anatol Belski | Date: | Fri, 22 Aug 2014 11:22:49 +0000 |
| Subject: | com php-src: note on hash table and sprintf: UPGRADING.INTERNALS | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-80824@lists.php.net to get a copy of this message | ||
Commit: 24cf50d2df70c1abbc45b207ee61176a368ca21f
Author: Anatol Belski <ab@php.net> Fri, 22 Aug 2014 13:22:49 +0200
Parents: c893552a9af7ca6de8e25f07b44ac72b2112958b
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=24cf50d2df70c1abbc45b207ee61176a368ca21f
Log:
note on hash table and sprintf
Changed paths:
M UPGRADING.INTERNALS
Diff:
diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS
index 83ce725..f0eed8c 100644
--- a/UPGRADING.INTERNALS
+++ b/UPGRADING.INTERNALS
@@ -9,6 +9,8 @@ UPGRADE NOTES - PHP X.Y
d. Arginfo changes
e. New data types
f. zend_parse_parameters() specs
+ g. sprintf() formats
+ h. HashTable API
2. Build system changes
a. Unix build system changes
@@ -61,8 +63,21 @@ UPGRADE NOTES - PHP X.Y
f. zend_parse_parameters() specs
- The new spec 'S' introduced, which expects an argument of type zend_string *.
- The new specs 'i' and 'I' introduced, which expect an argument of type
php_int_t.
+ The new spec 'S' introduced, which expects an argument of type zend_string *.
+ The new specs 'i' and 'I' introduced, which expect an argument of type
php_int_t.
+
+ g. sprintf() formats
+
+ New printf modifier 'p' was implemented to platform independently output
php_int_t,
+ php_uint_t and php_size_t datatypes. That modifier can be used with'd',
'u', 'x' and 'o'
+ printf format specs with spprintf, snprintf and the wrapping printf implementations.
+ %pu is sufficient for both php_uint_t and php_size_t. the code using %p spec to output
+ pointer address might need to be enclosed into #ifdef when it unlickily followed by
'd',
+ 'u', 'x' or 'o'.
+
+ h. HashTable API
+
+ Datatype for array indexes was changed to php_uint_t, for string keys to zend_string *.
========================
2. Build system changes