Skip to content

Commit 02ec4c5

Browse files
committed
Fix phpGH-10727: Spoofchecker constant updates.
- Adding MIXED_NUMBERS from ICU 58. - Adding HIDDEN_OVERLAY from ICU 62. Closes phpGH-10730.
1 parent 4177257 commit 02ec4c5

File tree

4 files changed

+37
-2
lines changed

4 files changed

+37
-2
lines changed

NEWS

+4-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ PHP NEWS
4747

4848
- Intl:
4949
. Added pattern format error infos for numfmt_set_pattern. (David Carlier)
50+
. Added MIXED_NUMBERS and HIDDEN_OVERLAY constants for
51+
the Spoofchecker's class. (David Carlier)
5052

5153
- JSON:
5254
. Added json_validate(). (Juan Morales)
@@ -117,7 +119,8 @@ PHP NEWS
117119
. Added SOL_UPDLITE, UDPLITE_RECV_CSCOV and UDPLITE_SEND_CSCOV for updlite
118120
protocol support. (David Carlier)
119121
. Added SO_RERROR, SO_ZEROIZE and SO_SPLICE netbsd and openbsd constants.
120-
. Added TCP_REPAIR for quietly close a connection.
122+
(David Carlier)
123+
. Added TCP_REPAIR for quietly close a connection. (David Carlier)
121124

122125
- Standard:
123126
. E_NOTICEs emitted by unserialize() have been promoted to E_WARNING. (timwolla)

UPGRADING

+4
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ PHP 8.3 UPGRADE NOTES
143143
10. New Global Constants
144144
========================================
145145

146+
- Intl:
147+
. MIXED_NUMBERS (Spoofchecker).
148+
. HIDDEN_OVERLAY (Spoofchecker).
149+
146150
- PCNTL:
147151
. SIGINFO
148152

ext/intl/spoofchecker/spoofchecker.stub.php

+12
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ class Spoofchecker
7171
* @cvalue USPOOF_SINGLE_SCRIPT_RESTRICTIVE
7272
*/
7373
public const SINGLE_SCRIPT_RESTRICTIVE = UNKNOWN;
74+
/**
75+
* @var int
76+
* @cvalue USPOOF_MIXED_NUMBERS
77+
*/
78+
public const MIXED_NUMBERS = UNKNOWN;
79+
#endif
80+
#if U_ICU_VERSION_MAJOR_NUM >= 62
81+
/**
82+
* @var int
83+
* @cvalue USPOOF_HIDDEN_OVERLAY
84+
*/
85+
public const HIDDEN_OVERLAY = UNKNOWN;
7486
#endif
7587

7688
public function __construct() {}

ext/intl/spoofchecker/spoofchecker_arginfo.h

+17-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)