1--TEST-- 2proc_open() with > 16 pipes 3--FILE-- 4<?php 5 6for ($i = 3; $i<= 30; $i++) { 7 $spec[$i] = array('pipe', 'w'); 8} 9 10$php = getenv("TEST_PHP_EXECUTABLE_ESCAPED"); 11$callee = escapeshellarg(__DIR__ . "/proc_open_pipes_sleep.inc"); 12proc_open("$php -n $callee", $spec, $pipes); 13 14var_dump(count($spec)); 15var_dump($pipes); 16 17?> 18--EXPECTF-- 19int(28) 20array(28) { 21 [3]=> 22 resource(%d) of type (Unknown) 23 [4]=> 24 resource(%d) of type (Unknown) 25 [5]=> 26 resource(%d) of type (Unknown) 27 [6]=> 28 resource(%d) of type (Unknown) 29 [7]=> 30 resource(%d) of type (Unknown) 31 [8]=> 32 resource(%d) of type (Unknown) 33 [9]=> 34 resource(%d) of type (Unknown) 35 [10]=> 36 resource(%d) of type (Unknown) 37 [11]=> 38 resource(%d) of type (Unknown) 39 [12]=> 40 resource(%d) of type (Unknown) 41 [13]=> 42 resource(%d) of type (Unknown) 43 [14]=> 44 resource(%d) of type (Unknown) 45 [15]=> 46 resource(%d) of type (Unknown) 47 [16]=> 48 resource(%d) of type (Unknown) 49 [17]=> 50 resource(%d) of type (Unknown) 51 [18]=> 52 resource(%d) of type (Unknown) 53 [19]=> 54 resource(%d) of type (Unknown) 55 [20]=> 56 resource(%d) of type (Unknown) 57 [21]=> 58 resource(%d) of type (Unknown) 59 [22]=> 60 resource(%d) of type (Unknown) 61 [23]=> 62 resource(%d) of type (Unknown) 63 [24]=> 64 resource(%d) of type (Unknown) 65 [25]=> 66 resource(%d) of type (Unknown) 67 [26]=> 68 resource(%d) of type (Unknown) 69 [27]=> 70 resource(%d) of type (Unknown) 71 [28]=> 72 resource(%d) of type (Unknown) 73 [29]=> 74 resource(%d) of type (Unknown) 75 [30]=> 76 resource(%d) of type (Unknown) 77} 78