summaryrefslogtreecommitdiff
path: root/UPGRADING.INTERNALS
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-08-22 13:48:20 +0200
committerAnatol Belski <ab@php.net>2014-08-22 13:48:20 +0200
commit4ff697b6b1f56f1865b97500fc8b651a92b435ae (patch)
treea2797a799dbae3b5cdd294c6c3296f6992cf9cd7 /UPGRADING.INTERNALS
parent4c56e68b7f3506cb347ebe82b9af864694da280a (diff)
downloadphp-git-4ff697b6b1f56f1865b97500fc8b651a92b435ae.tar.gz
adedd note on portable numeric macros
Diffstat (limited to 'UPGRADING.INTERNALS')
-rw-r--r--UPGRADING.INTERNALS17
1 files changed, 16 insertions, 1 deletions
diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS
index d446dcea3b..e46581ac70 100644
--- a/UPGRADING.INTERNALS
+++ b/UPGRADING.INTERNALS
@@ -12,6 +12,7 @@ UPGRADE NOTES - PHP X.Y
g. sprintf() formats
h. HashTable API
i. New portable macros for large file support
+ j. New portable macros for integers
2. Build system changes
a. Unix build system changes
@@ -82,13 +83,27 @@ UPGRADE NOTES - PHP X.Y
i. New portable macros for large file support
- Function Alias Comment
+ Function(s) Alias Comment
stat, _stat64 zend_stat for use with zend_stat_t
fstat, _fstat64 zend_fstat for use with zend_stat_t
lseek, _lseeki64 zend_lseek for use with zend_off_t
ftell, _ftelli64 zend_ftell for use with zend_off_t
fseek, _fseeki64 zend_fseek for use with zend_off_t
+ j. New portable macros for integers
+
+ Function(s) Alias Comment
+ snprintf with "%ld" or "%lld", _ltoa_s, _i64toa_s ZEND_ITOA for use with zend_int_t
+ atol, atoll, _atoi64 ZEND_ATOI for use with zend_int_t
+ strtol, strtoll, _strtoi64 ZEND_STRTOI for use with zend_int_t
+ strtoul, strtoull, _strtoui64 ZEND_STRTOUI for use with zend_int_t
+ abs, llabs, _abs64 ZEND_ABS for use with zend_int_t
+ - ZEND_INT_MAX Aliased with PHP_INT_MAX in php.h, replaces LONG_MAX where appropriate
+ - ZEND_INT_MIN Aliased with PHP_INT_MIN in php.h, replaces LONG_MIN where appropriate
+ - ZEND_UINT_MAX ULONG_MAX
+ - SIZEOF_ZEND_INT Replaces SIZEOF_ZEND_LONG where appropriate
+ - ZEND_SIZE_MAX Max value of zend_size_t
+
========================
2. Build system changes
========================