8000 Add upgrading note · nikic/php-src@5f8489a · GitHub
[go: up one dir, main page]

Skip to content

Commit 5f8489a

Browse files
committed
Add upgrading note
I was originally planning more changes here, but then I realized that zend_atol() is actually used to parse all numbers in inis, not just those expecting sizes. I think I'll just leave it at that. [ci skip]
1 parent 26e8a3b commit 5f8489a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

UPGRADING.INTERNALS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ PHP 8.1 INTERNALS UPGRADE NOTES
4242
c. Added the zend_get_opcode_id() function, which is intended to get opcode id from name.
4343
d. Removed support for "p" modifier (%pd, %pu, etc) in PHP's printf
4444
implementations. Use ZEND_LONG_FMT and ZEND_ULONG_FMT instead.
45+
e. ZEND_ATOL() now returns the integer instead of assigning it as part of the
46+
macro. Replace ZEND_ATOL(i, s) with i = ZEND_ATOL(s).
47+
f. zend_atoi() has been removed. It is identical to (int) zend_atol(). Please
48+
note that zend_atol() parses an integer with size suffix. If you just want
49+
to parse a simple integer use ZEND_ATOL() or ZEND_STRTOL().
4550

4651
========================
4752
2. Build system changes

0 commit comments

Comments
 (0)
0