Skip to content

Commit 34122ed

Browse files
committed
Update NEWS and UPGRADING [ci skip]
1 parent 4f4cf98 commit 34122ed

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Diff for: NEWS

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ PHP NEWS
8585
stream_socket_client). (Ville Hukkamäki)
8686
. Implemented FR #38301 (field enclosure behavior in fputcsv). (cmb)
8787
. Implemented FR #51496 (fgetcsv should take empty string as an escape). (cmb)
88+
. Implemented FR #77377 (No way to handle CTRL+C in Windows). (Anatol)
8889

8990
- Reflection:
9091
. Fixed bug #76737 (Unserialized reflection objects are broken, they

Diff for: UPGRADING

+16
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ PHP 7.4 UPGRADE NOTES
173173
which disables the propriertary PHP escaping mechanism. The behavior of
174174
str_getcsv() has been adjusted accordingly (formerly, an empty string was
175175
identical to using the default).
176+
. proc_open() on Windows can be passed a "create_process_group" option. It
177+
is required, if the child process is supposed to handle CTRL events.
176178

177179
========================================
178180
6. New Functions
@@ -189,6 +191,13 @@ PHP 7.4 UPGRADE NOTES
189191
passed as parameter, query parameters will be replaced in the return value
190192
by their currently bound value, if libsqlite ≥ 3.14 is used.
191193

194+
- Standard
195+
. bool sapi_windows_set_ctrl_handler(callable handler, [, bool add = true]) -
196+
set or remove a handler function upon receiving a CTRL event. The handler
197+
function is expected have a signature "function handler(int $event)".
198+
. bool sapi_windows_generate_ctrl_event(int type, int pid) - send a CTRL event
199+
to another process.
200+
192201
========================================
193202
7. New Classes and Interfaces
194203
========================================
@@ -269,6 +278,10 @@ PHP 7.4 UPGRADE NOTES
269278
. SO_LISTENQLEN
270279
. SO_USER_COOKIE
271280

281+
- Standard:
282+
. PHP_WINDOWS_EVENT_CTRL_C
283+
. PHP_WINDOWS_EVENT_CTRL_BREAK
284+
272285
- Tidy:
273286
. TIDY_TAG_ARTICLE
274287
. TIDY_TAG_ASIDE
@@ -316,6 +329,9 @@ PHP 7.4 UPGRADE NOTES
316329
systems. On 32-bit system, these values might overflow the 32-bit integer in
317330
PHP, so they're a fake.
318331

332+
- CTRL+C and CTRL+BREAK on console can be caught by setting a handler function
333+
with sapi_windows_set_ctrl_handler().
334+
319335
========================================
320336
13. Migration to pkg-config
321337
========================================

0 commit comments

Comments
 (0)