1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

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

View File

@@ -1,5 +1,7 @@
--TEST--
Harden against cmd.exe hijacking
--CONFLICTS--
all
--SKIPIF--
<?php
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);
}
}
@unlink("cmd.exe");
?>
--EXPECTF--
resource(%d) of type (process)