Merge branch 'PHP-8.3' into PHP-8.4

* PHP-8.3:
  Don't run proc_open_cmd.phpt in parallel with other tests
This commit is contained in:
Christoph M. Becker 2024-12-15 12:10:47 +01:00
commit fd25b79412
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6

View file

@ -1,5 +1,7 @@
--TEST-- --TEST--
Harden against cmd.exe hijacking Harden against cmd.exe hijacking
--CONFLICTS--
all
--SKIPIF-- --SKIPIF--
<?php <?php
if (PHP_OS_FAMILY !== "Windows") die("skip only for Windows"); if (PHP_OS_FAMILY !== "Windows") die("skip only for Windows");
@ -18,6 +20,7 @@ if (($num = stream_select($read, $write, $except, 1000)) === false) {
fpassthru($stream); fpassthru($stream);
} }
} }
@unlink("cmd.exe");
?> ?>
--EXPECTF-- --EXPECTF--
resource(%d) of type (process) resource(%d) of type (process)