9 Commits
Author SHA1 Message Date
Weilin Du c2907d2875 Merge branch 'PHP-8.6'
* PHP-8.6:
  Merge branch 'PHP-8.5' into PHP-8.6
  Fix IntlDateFormatter parse functions truncating an $offset below INT_MIN (#24781)
2026-10-28 16:11:38 +08:00
Weilin Du e427f87653 Merge branch 'PHP-8.5' into PHP-8.6
* PHP-8.5:
  Merge branch 'PHP-8.4' into PHP-8.5
  Fix IntlDateFormatter parse functions truncating an $offset below INT_MIN (#24781)
2026-10-28 16:10:58 +08:00
Gina Peter Banyard c0250bac3a intl: stop including headers as C extern (#24617)
Except for arginfo header as PHP_FUNCTION/PHP_METHOD are marked as U_CFUNC and the `ext/date/php_date.h` header doesn't use extern C.

We now specificy the header symbols that _need_ to follow the C function ABI, meaning in some places we drop U_CFUNC declarations and in others we add it.

Also use the `BEGIN_EXTERN_C()` portability macro when possible so that searching for this is easier.
2026-10-23 21:51:52 +01:00
Ilia Alshanetsky 3913e03965 Merge branch 'PHP-8.5' into PHP-8.6
* PHP-8.5:
  ext/intl: Use byte offsets in IntlDateFormatter parsing
2026-10-05 09:01:30 -04:00
Weilin Du 52b56eb254 ext/Intl: Fix IntlDateFormatter offset type validation (#22533)
IntlDateFormatter::parse()/datefmt_parse() and
IntlDateFormatter::localtime()/datefmt_localtime() now raise a TypeError
when the offset argument is not of type int instead of silently converting
the value.
2026-07-04 01:32:47 +08:00
Weilin Du cff33786f6 ext/intl: add const qualifiers (#22465)
Add several const qualifiers.
2026-06-26 20:34:56 +08:00
Weilin Du 900797e54f ext/intl: various optimization (#22069)
- use array_init_size for known-size arrays
- reuse known string lengths
2026-05-24 12:00:02 +01:00
Ben Ramsey bb068359d4 license-update: ext/intl source headers
RFC: https://wiki.php.net/rfc/php_license_update
2026-04-11 21:20:54 -05:00
David CARLIER 7f65512511 ext/intl: migrate C code to C++ step 3. (#19411) 2025-10-11 14:16:57 +01:00