1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-23 23:32:18 +01:00

442 Commits

Author SHA1 Message Date
Máté Kocsis
f7f861700c Sync stubs with the manual - part 10 (#5415) 2026-03-20 22:30:50 +01:00
KentarouTakeda
1786db6ef5 Fix IntlDateFormatter::PATTERN changelog version: 8.5.0 -> 8.4.0 (#5410)
The changelog says PATTERN was added in 8.5.0, but the constants
description on the same page says "Available as of PHP 8.4.0".

See also https://www.php.net/manual/en/migration84.constants.php
2026-03-09 08:01:56 +00:00
武田 憲太郎
63bd68a3fd Fix duplicated constant name in IntlChar 8.4.0 changelog
The changelog entry lists PROPERTY_ID_COMPAT_MATH_START twice.
The second should be PROPERTY_ID_COMPAT_MATH_CONTINUE.

See https://www.php.net/manual/en/migration84.constants.php
2026-03-06 14:23:32 +01:00
武田 憲太郎
122d5d0969 grapheme-str-split.xml: Remove erroneous locale changelog entry 2026-03-06 08:25:23 +01:00
Máté Kocsis
5e36b489fc Add some missing properties and constants (intl/soap/attribute) (#5069) 2026-02-06 14:15:34 +00:00
Mikhail Alferov
ee94fd0c20 grapheme-str-split.xml Remove extra locale description (#5182)
Initially I thought the `locale` parameter was missing from the signature. However, `grapheme_str_split()` actually accepts only 2 arguments in PHP 8.5.2 — meaning the parameter description was added to the documentation erroneously
2026-01-30 10:09:33 +00:00
Máté Kocsis
9a8c593c09 Sync newly added parameters (#5074)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2026-01-15 18:24:26 +01:00
Máté Kocsis
c142be8117 Fix class constant references inside parameter default values (#5084) 2026-01-09 09:50:14 +01:00
Gina Peter Banyard
14a6825b9b Fix incorrect indentation of CDATA tags
Follow-up to GH-4963
2026-01-09 01:21:19 +00:00
AllenJB
8a22321e31 Document locale_canonicalize (#4963) 2025-11-03 20:43:48 +00:00
Mikhail Alferov
743f97dd06 Update get-sort-key.xml Fix extra */ (#4956) 2025-10-26 15:59:26 +01:00
Gina Peter Banyard
bce2cb8497 Audit review (#4797)
* Add an appendix for example code in manual

* dio: Fix issue 8 of audit

* intl: Fix issue 67 of audit

* intl: Fix issue 60 & 61 of audit

* intl: Fix issue 55, 56, 57, 58 & 65 of audit

And make example useful

* enchant: Fix issue 41 of audit

Remove calls to deprecated functions

* enchant: Fix issue 38 of audit

Incorrect variable

* enchant: Fix issue 35 of audit

Remove calls to deprecated functions

* enchant: Fix issue 34 of audit

Incorrect variable

* Fix dio_read return check

* Fix issue 1 and 2

---------

Co-authored-by: Jakub Zelenka <bukka@php.net>
2025-08-12 23:00:40 +02:00
Leonardo Lara Rodrigues
8ddf539e59 IntlDateFormatter::localtime: Fix example (closes php#4636) 2025-05-05 20:14:59 +02:00
Thomas Landauer
e908bfda98 Update idn-to-ascii.xml: Adding info about conversion to lowercase (#4505)
This would close https://bugs.php.net/bug.php?id=80922
2025-04-24 16:15:34 +02:00
Derick Rethans
bfc89e697f Add extra example for Collator::getSortKey 2025-03-13 16:32:41 +00:00
philip
e8ac70bf54 Implemented global.ent entities for all external URLs, these new entities were
added to global.ent via f8bdf4030e
Sorry translators for this extra work!
Note: Notes containing 'windows.php.net/downloads/pecl/releases' were
removed as the associated entity will disappear one day via https://github.com/php/doc-base/pull/143
2025-02-22 07:59:45 -08:00
Derick Rethans
22583751fb Fixed syntax errors in more examples 2025-02-07 11:21:39 +00:00
Alexandre Daubois
1f68eecaa7 [PHP 8.4] Add ext-intl constant types (#4238) 2024-12-04 10:50:40 +00:00
Máté Kocsis
18aa2012f6 Synchronize manual with stubs for PHP 8.4 - part 8 (#4227)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-12-03 20:15:59 +01:00
David CARLIER
9fb67f0945 [PHP 8.4] intl fix constants (#4219) 2024-12-02 18:05:58 +00:00
David CARLIER
d3ee29b810 [PHP 8.4] intl update part 2 (#4207) 2024-12-02 13:04:51 +00:00
David CARLIER
b35a2269ff [PHP 8.4] intl changes part 1. (#4160) 2024-11-28 11:34:42 +00:00
Máté Kocsis
679cf93fa1 Synchronize manual with stubs for PHP 8.4 - part 1 (#4156) 2024-11-26 17:49:53 +01:00
Mikhail Alferov
454c84c4f3 getbidipairedbracket.xml: be more precise (GH-3605)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2024-11-09 13:51:41 +01:00
Gina Peter Banyard
1b36e583dc Remove useless wrapping para tag in new file
Also use simpara instead of para tags

Follow-up to GH-3956
2024-10-30 18:02:02 +00:00
tekimen
31e3015907 [PHP 8.4] Add manual for grapheme_str_split function (GH-3956)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2024-10-30 15:53:18 +01:00
Mikhail Alferov
6e6cdaf9b8 getbidipairedbracket.xml: add a note about the ICU compatible version (#3609)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-10-16 21:32:21 +01:00
Jim Winstead
0545e305cf Normalize version strings in changelog entries (#3672)
Now they're always N.X.Y for a PHP version, or PECL extension N.X.Y for PECL extensions.
2024-09-23 11:15:26 -07:00
Mikhail Alferov
feab22a679 chr.xml: use more relevant a method instead a function (#3594)
* chr.xml: use more relevent a `method` instead a `function`

* Update reference/intl/intlchar/chr.xml

Move the function tag to the method tag

Co-authored-by: Gina Peter Banyard <girgias@php.net>

---------

Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-07-26 11:19:58 +01:00
Mikhail Alferov
a3f969dec3 fordigit.xml: amend return type (#3602) 2024-07-26 11:16:55 +01:00
haszi
48ce43fe79 Remove empty resources pages (#3545)
Co-authored-by: haszi <haszika80@gmail.com>
2024-07-26 02:17:29 +01:00
haszi
06844e3a94 Add GRAPHEME_EXTR constants (#3505) 2024-06-30 19:56:29 +01:00
Gina Peter Banyard
4d17b7b494 [skip-revcheck] Convert class markup to be compatible with DocBook 5.2
Closes GH-3415
2024-06-14 17:04:53 +01:00
Mikhail Alferov
9c06de1e1d [skip-revcheck] intl/constants.xml: fix typo (#3417) 2024-05-28 00:19:36 +01:00
haszi
ca7a816314 Add U_ error constants to intl constant list (#3296)
The Intl extension exposes all the underlying ICU C++ constants, even if most of them make no sense in the context of a PHP script.

---------

Co-authored-by: haszi <haszika80@gmail.com>
2024-05-27 14:10:35 +01:00
Máté Kocsis
2a8b2f1c53 Sync some classsynopses with stubs (#3367)
* Sync some classsynopses with stubs

* Rename class constant container IDs

* Remove double hypens from IDs
2024-05-20 13:15:53 +01:00
haszi
3c039d0b7c Add some missing intl constants (#3395)
Co-authored-by: haszi <haszika80@gmail.com>
2024-05-18 16:09:12 +01:00
Gina Peter Banyard
89562618e9 Make Intl constant pages DocBook 5.2 conformant (#3370)
Basically add required title tags
2024-05-10 14:13:58 +01:00
Máté Kocsis
d715365c09 Sync some methodsynopses with stubs (#3199)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-04-16 13:02:43 +02:00
haszi
f80105b4fc Remove constant tag from literal values (#3251)
* Remove constant tag from literal values

* [skip-revcheck] Fix whitespace

---------

Co-authored-by: haszi <haszika80@gmail.com>
2024-03-10 21:34:11 +01:00
haszi
e3ed93fa21 Add intl IDNA_ERROR constant IDs (#3239)
Co-authored-by: haszi <haszika80@gmail.com>
2024-03-05 22:25:24 +00:00
Gina Peter Banyard
d4d5216e7a [skip-revcheck] Replace PHP_INI_* with INI_* constants
Performed via a bash script which can be found on PR GH-3140

Closes GH-3140

Co-authored-by: haszi <haszika80@gmail.com>
2024-01-26 14:00:36 +00:00
Leonardo Lara Rodrigues
86178eaa50 Fix self-referencing function name (#3125) 2024-01-19 13:01:39 +00:00
Leonardo Lara Rodrigues
a4e79bc8e4 Correction to IntlDateFormatter error handling examples (#3120)
* IntlDateFormatter::getErrorCode example needs correction

in: reference/intl/dateformatter/get-error-code.xml

IntlDateFormatter::getErrorCode example uses the function IntlDateFormatter::format with the wrong number of parameters, both in OO and procedural examples. Corrections made by this commit intend to generate the expected error code and message. Tested with PHP 8.3.1.

* Update get-error-code.xml

Rephrased synopsis removing redundant information.
Removed trailing ws.
Corrected identation.

* IntlDateFormatter::getErrorMessage example correction

in: reference/intl/dateformatter/get-error-code.xml

IntlDateFormatter::getErrorCode example uses the function IntlDateFormatter::format with the wrong number of parameters, both in OO and procedural examples. Corrections made by this commit intend to generate the expected error code and message. Tested with PHP 8.3.1.
2024-01-18 16:29:30 +00:00
Leonardo Lara Rodrigues
a37831eed5 Corrections to IntlChar::istitle() and IntlChar::totitle() examples (#3099)
* Corrections to IntlChar::istitle() example

The current example is incorrect and is identical to the example of islower.xml.

The ``istitle()`` method determines whether the character is a title case code point ("Lt" general category of Unicode).
Title case characters are digraphs (in one character) formed by a combination of two glyphs, one uppercase and the other lowercase.

The examples included in this commit were retrieved from the Unicode specification, also presented in https://www.compart.com/en/unicode/category/Lt

* Corrections to IntlChar::totitle() example

The current example is incorrect and is identical to the example of ``IntlChar::toupper()``.

The examples I included in this commit were retrieved from the Unicode specification, also presented in https://www.compart.com/en/unicode/category/Lt
2024-01-11 19:04:37 +00:00
Sergey Panteleev
574787befb [PHP 8.3] Update Intl functions return values (#3093) 2024-01-10 21:49:11 +00:00
Sergey Panteleev
ba898ea6be Fix IntlGregorianCalendar::createFromDateTime example title 2024-01-09 09:31:55 +03:00
Leonardo Lara Rodrigues
8eec6fe557 Example of tertiary level difference (#3083) 2024-01-08 21:10:55 +00:00
David CARLIER
b2332afcd0 IntlDateFormatter adding invalid locale examples. (#3005)
IntlDateFormatter adding invalid locale examples.

Co-authored-by: Gina Peter Banyard <girgias@php.net>
2023-12-10 00:47:23 +00:00
Gina Peter Banyard
1cf6bcae73 ext/intl: Add new PHP 8.3 SpoofChecker constants 2023-12-06 05:45:01 +00:00