summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorMartin Schröder <m.schroeder2007@gmail.com>2020-07-12 20:56:47 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-07-14 10:35:45 +0200
commit547d98b81d674c48f04eab5c24aa065eba4838cc (patch)
treec74b563738e221d80224562c0c3a248f2e102ce1 /UPGRADING
parent1a00d015be4f5c1457146022c4d692a03d95154b (diff)
downloadphp-git-547d98b81d674c48f04eab5c24aa065eba4838cc.tar.gz
Support socketpairs in proc_open()
Closes GH-5777.
Diffstat (limited to 'UPGRADING')
-rw-r--r--UPGRADING8
1 files changed, 8 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index 704bd2924a..cb4021b8a5 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -631,6 +631,14 @@ PHP 8.0 UPGRADE NOTES
$proc = proc_open($command, [['pty'], ['pty'], ['pty']], $pipes);
+ . proc_open() now supports socket pair descriptors. The following attaches
+ a distinct socket pair to stdin, stdout and stderr:
+
+ $proc = proc_open(
+ $command, [['socket'], ['socket'], ['socket']], $pipes);
+
+ Unlike pipes, sockets do not suffer from blocking I/O issues on Windows.
+ However, not all programs may work correctly with stdio sockets.
. Sorting functions are now stable, which means that equal-comparing elements
will retain their original order.
RFC: https://wiki.php.net/rfc/stable_sorting