@@ -173,6 +173,8 @@ PHP 7.4 UPGRADE NOTES
173
173
which disables the propriertary PHP escaping mechanism. The behavior of
174
174
str_getcsv() has been adjusted accordingly (formerly, an empty string was
175
175
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.
176
178
177
179
========================================
178
180
6. New Functions
@@ -189,6 +191,13 @@ PHP 7.4 UPGRADE NOTES
189
191
passed as parameter, query parameters will be replaced in the return value
190
192
by their currently bound value, if libsqlite ≥ 3.14 is used.
191
193
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
+
192
201
========================================
193
202
7. New Classes and Interfaces
194
203
========================================
@@ -269,6 +278,10 @@ PHP 7.4 UPGRADE NOTES
269
278
. SO_LISTENQLEN
270
279
. SO_USER_COOKIE
271
280
281
+ - Standard:
282
+ . PHP_WINDOWS_EVENT_CTRL_C
283
+ . PHP_WINDOWS_EVENT_CTRL_BREAK
284
+
272
285
- Tidy:
273
286
. TIDY_TAG_ARTICLE
274
287
. TIDY_TAG_ASIDE
@@ -316,6 +329,9 @@ PHP 7.4 UPGRADE NOTES
316
329
systems. On 32-bit system, these values might overflow the 32-bit integer in
317
330
PHP, so they're a fake.
318
331
332
+ - CTRL+C and CTRL+BREAK on console can be caught by setting a handler function
333
+ with sapi_windows_set_ctrl_handler().
334
+
319
335
========================================
320
336
13. Migration to pkg-config
321
337
========================================
0 commit comments